Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove use of deprecated HttpKernel LoggerInterface

  • Loading branch information...
commit 0c240d96c24caa2e6f5b0b4e7206ed84f368209e 1 parent f02b438
Jordi Boggiano Seldaek authored
2  Controller/ControllerResolver.php
View
@@ -11,7 +11,7 @@
namespace Symfony\Component\HttpKernel\Controller;
-use Symfony\Component\HttpKernel\Log\LoggerInterface;
+use Psr\Log\LoggerInterface;
use Symfony\Component\HttpFoundation\Request;
/**
2  Debug/ErrorHandler.php
View
@@ -12,7 +12,7 @@
namespace Symfony\Component\HttpKernel\Debug;
use Symfony\Component\HttpKernel\Exception\FatalErrorException;
-use Symfony\Component\HttpKernel\Log\LoggerInterface;
+use Psr\Log\LoggerInterface;
/**
* ErrorHandler.
2  Debug/TraceableEventDispatcher.php
View
@@ -13,7 +13,7 @@
use Symfony\Component\Stopwatch\Stopwatch;
use Symfony\Component\HttpKernel\KernelEvents;
-use Symfony\Component\HttpKernel\Log\LoggerInterface;
+use Psr\Log\LoggerInterface;
use Symfony\Component\HttpKernel\Profiler\Profile;
use Symfony\Component\HttpKernel\Profiler\Profiler;
use Symfony\Component\HttpKernel\HttpKernelInterface;
2  EventListener/DeprecationLoggerListener.php
View
@@ -11,7 +11,7 @@
namespace Symfony\Component\HttpKernel\EventListener;
-use Symfony\Component\HttpKernel\Log\LoggerInterface;
+use Psr\Log\LoggerInterface;
use Symfony\Component\HttpKernel\Debug\ErrorHandler;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpKernel\KernelEvents;
2  EventListener/ExceptionListener.php
View
@@ -11,7 +11,7 @@
namespace Symfony\Component\HttpKernel\EventListener;
-use Symfony\Component\HttpKernel\Log\LoggerInterface;
+use Psr\Log\LoggerInterface;
use Symfony\Component\HttpKernel\Log\DebugLoggerInterface;
use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent;
use Symfony\Component\HttpKernel\KernelEvents;
2  EventListener/RouterListener.php
View
@@ -11,7 +11,7 @@
namespace Symfony\Component\HttpKernel\EventListener;
-use Symfony\Component\HttpKernel\Log\LoggerInterface;
+use Psr\Log\LoggerInterface;
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
use Symfony\Component\HttpKernel\KernelEvents;
use Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException;
2  Log/NullLogger.php
View
@@ -11,7 +11,7 @@
namespace Symfony\Component\HttpKernel\Log;
-use Symfony\Component\HttpKernel\Log\LoggerInterface;
+use Psr\Log\LoggerInterface;
use Psr\Log\NullLogger as PsrNullLogger;
/**
2  Profiler/Profiler.php
View
@@ -15,7 +15,7 @@
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Profiler\ProfilerStorageInterface;
use Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface;
-use Symfony\Component\HttpKernel\Log\LoggerInterface;
+use Psr\Log\LoggerInterface;
/**
* Profiler.
4 Tests/Debug/ErrorHandlerTest.php
View
@@ -67,7 +67,7 @@ public function testHandle()
restore_error_handler();
- $logger = $this->getMock('Symfony\Component\HttpKernel\Log\LoggerInterface');
+ $logger = $this->getMock('Psr\Log\LoggerInterface');
$that = $this;
$warnArgCheck = function($message, $context) use ($that) {
@@ -84,7 +84,7 @@ public function testHandle()
$logger
->expects($this->once())
- ->method('warn')
+ ->method('warning')
->will($this->returnCallback($warnArgCheck))
;
4 Tests/Debug/TraceableEventDispatcherTest.php
View
@@ -102,7 +102,7 @@ public function testGetCalledListeners()
public function testLogger()
{
- $logger = $this->getMock('Symfony\Component\HttpKernel\Log\LoggerInterface');
+ $logger = $this->getMock('Psr\Log\LoggerInterface');
$dispatcher = new EventDispatcher();
$tdispatcher = new TraceableEventDispatcher($dispatcher, new Stopwatch(), $logger);
@@ -117,7 +117,7 @@ public function testLogger()
public function testLoggerWithStoppedEvent()
{
- $logger = $this->getMock('Symfony\Component\HttpKernel\Log\LoggerInterface');
+ $logger = $this->getMock('Psr\Log\LoggerInterface');
$dispatcher = new EventDispatcher();
$tdispatcher = new TraceableEventDispatcher($dispatcher, new Stopwatch(), $logger);
2  Tests/Logger.php
View
@@ -11,7 +11,7 @@
namespace Symfony\Component\HttpKernel\Tests;
-use Symfony\Component\HttpKernel\Log\LoggerInterface;
+use Psr\Log\LoggerInterface;
class Logger implements LoggerInterface
{
Please sign in to comment.
Something went wrong with that request. Please try again.