From c0cc14ffd880c525b31b7ec08c264408652d2f59 Mon Sep 17 00:00:00 2001 From: Alain Hippolyte Date: Tue, 12 Aug 2014 16:13:39 +0200 Subject: [PATCH] Fix class name in ConsoleTerminateListener example --- cookbook/console/logging.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cookbook/console/logging.rst b/cookbook/console/logging.rst index ee8ec0d9e08..133021ccf7a 100644 --- a/cookbook/console/logging.rst +++ b/cookbook/console/logging.rst @@ -205,11 +205,11 @@ First configure a listener for console terminate events in the service container xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"> - Acme\DemoBundle\EventListener\ConsoleExceptionListener + Acme\DemoBundle\EventListener\ConsoleExceptionListener - + @@ -223,11 +223,11 @@ First configure a listener for console terminate events in the service container use Symfony\Component\DependencyInjection\Reference; $container->setParameter( - 'console_terminate_listener.class', + 'console_exception_listener.class', 'Acme\DemoBundle\EventListener\ConsoleExceptionListener' ); $definitionConsoleExceptionListener = new Definition( - '%console_terminate_listener.class%', + '%console_exception_listener.class%', array(new Reference('logger')) ); $definitionConsoleExceptionListener->addTag( @@ -247,7 +247,7 @@ Then implement the actual listener:: use Symfony\Component\Console\Event\ConsoleTerminateEvent; use Psr\Log\LoggerInterface; - class ConsoleTerminateListener + class ConsoleExceptionListener { private $logger;