From 6630a9948593203e135158eaad377bbffcd59ec4 Mon Sep 17 00:00:00 2001 From: Ahmed TAILOULOUTE Date: Mon, 22 Jun 2020 22:31:52 +0200 Subject: [PATCH] Update http_kernel.rst --- components/http_kernel.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/http_kernel.rst b/components/http_kernel.rst index 7b13883a94a..79e6dcd504c 100644 --- a/components/http_kernel.rst +++ b/components/http_kernel.rst @@ -533,7 +533,7 @@ exception and create an appropriate error ``Response``. For example, to generate a 404 page, you might throw a special type of exception and then add a listener on this event that looks for this exception and creates and returns a 404 ``Response``. In fact, the HttpKernel component -comes with an :class:`Symfony\\Component\\HttpKernel\\EventListener\\ExceptionListener`, +comes with an :class:`Symfony\\Component\\HttpKernel\\EventListener\\ErrorListener`, which if you choose to use, will do this and more by default (see the sidebar below for more details). @@ -547,10 +547,10 @@ below for more details). There are two main listeners to ``kernel.exception`` when using the Symfony Framework. - **ExceptionListener in the HttpKernel Component** + **ErrorListener in the HttpKernel Component** The first comes core to the HttpKernel component - and is called :class:`Symfony\\Component\\HttpKernel\\EventListener\\ExceptionListener`. + and is called :class:`Symfony\\Component\\HttpKernel\\EventListener\\ErrorListener`. The listener has several goals: 1) The thrown exception is converted into a