diff --git a/create_framework/http_kernel_httpkernel_class.rst b/create_framework/http_kernel_httpkernel_class.rst index 59b79bedf48..33c5cd817cc 100644 --- a/create_framework/http_kernel_httpkernel_class.rst +++ b/create_framework/http_kernel_httpkernel_class.rst @@ -82,7 +82,7 @@ display. It can take any valid controller as an exception handler, so you can create an ErrorController class instead of using a Closure:: $listener = new HttpKernel\EventListener\ExceptionListener( - 'Calendar\Controller\ErrorController::exceptionAction' + 'Calendar\Controller\ErrorController::exception' ); $dispatcher->addSubscriber($listener);