Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
Silex
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
Silex
Commits
b85d610d
Commit
b85d610d
authored
Jul 03, 2013
by
Igor Wiedler
Committed by
Fabien Potencier
Jul 03, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change the ControllerResolver type hint to Psr\Log\LoggerInterface
parent
5755194c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
8 deletions
+10
-8
doc/changelog.rst
doc/changelog.rst
+2
-0
doc/services.rst
doc/services.rst
+7
-7
src/Silex/ControllerResolver.php
src/Silex/ControllerResolver.php
+1
-1
No files found.
doc/changelog.rst
View file @
b85d610d
...
@@ -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.
...
...
doc/services.rst
View file @
b85d610d
...
@@ -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::
...
...
src/Silex/ControllerResolver.php
View file @
b85d610d
...
@@ -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
;
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment