merged branch mevers47/master (PR #7021)
This PR was submitted for the master branch but it was merged into the 2.2 branch instead (closes #7021).
Commits
-------
c9c1ce6 [HttpKernel] exception listener, allow easier overloading of the default behavior
Discussion
----------
[HttpKernel] exception listener, allow easier overloading of the default behavior
Hi Fabien,
This commit you wrote about a month ago helped me to overload the 'logException' method:
1a6c9b3143
Because the logger property was private I could not access it from the subclass. This PR changes both properties: controller and logger from private to public members. So they can be used from 'logException'.
This commit is contained in:
commit
7b8c0c1a73
@ -27,8 +27,8 @@ use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
|||||||
*/
|
*/
|
||||||
class ExceptionListener implements EventSubscriberInterface
|
class ExceptionListener implements EventSubscriberInterface
|
||||||
{
|
{
|
||||||
private $controller;
|
protected $controller;
|
||||||
private $logger;
|
protected $logger;
|
||||||
|
|
||||||
public function __construct($controller, LoggerInterface $logger = null)
|
public function __construct($controller, LoggerInterface $logger = null)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user