Commit b85d610d authored by Igor Wiedler's avatar Igor Wiedler Committed by Fabien Potencier

Change the ControllerResolver type hint to Psr\Log\LoggerInterface

parent 5755194c
...@@ -4,6 +4,8 @@ Changelog ...@@ -4,6 +4,8 @@ Changelog
1.1.0 (2013-XX-XX) 1.1.0 (2013-XX-XX)
------------------ ------------------
* Support for any ``Psr\Log\LoggerInterface`` as opposed to the monolog-bridge
one.
* Made dispatcher proxy methods ``on``, ``before``, ``after`` and ``error`` * Made dispatcher proxy methods ``on``, ``before``, ``after`` and ``error``
lazy, so that they will not instantiate the dispatcher early. lazy, so that they will not instantiate the dispatcher early.
* Dropped support for 2.1 and 2.2 versions of symfony. * Dropped support for 2.1 and 2.2 versions of symfony.
......
...@@ -143,7 +143,7 @@ those definitions. ...@@ -143,7 +143,7 @@ those definitions.
This also works for shared services. This also works for shared services.
Going back to our initial example, here's how we could use the container Going back to our initial example, here's how we could use the container
to manage its dependencies:: to manage its dependencies::
$app['user.persist_path'] = '/tmp/users'; $app['user.persist_path'] = '/tmp/users';
...@@ -225,12 +225,12 @@ don't want to mess with most of them. ...@@ -225,12 +225,12 @@ don't want to mess with most of them.
does not return a Response. Disable it with does not return a Response. Disable it with
``$app['exception_handler']->disable()``. ``$app['exception_handler']->disable()``.
* **logger**: A * **logger**: A ``Psr\Log\LoggerInterface`` instance. By default, logging is
`LoggerInterface disabled as the value is set to ``null``. When the Symfony2 Monolog bridge is
<http://api.symfony.com/master/Symfony/Component/HttpKernel/Log/LoggerInterface.html>`_ installed, Monolog is automatically used as the default logger.
instance. By default, logging is disabled as the value is set to ``null``.
When the Symfony2 Monolog bridge is installed, Monolog is automatically used In versions of Silex before 1.1 this must be a
as the default logger. ``Symfony\Component\HttpKernel\Log\LoggerInterface``.
.. note:: .. note::
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
namespace Silex; namespace Silex;
use Psr\Log\LoggerInterface;
use Symfony\Component\HttpKernel\Controller\ControllerResolver as BaseControllerResolver; use Symfony\Component\HttpKernel\Controller\ControllerResolver as BaseControllerResolver;
use Symfony\Component\HttpKernel\Log\LoggerInterface;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment