@@ -242,22 +242,22 @@ will be called after another event - ``kernel.controller`` - is dispatched.
242242 This string is then transformed into a PHP callable by doing the following:
243243
244244 a) The ``AcmeDemoBundle:Default:index `` format of the ``_controller `` key
245- is changed to another string that contains the full class and method
246- name of the controller by following the convention used in Symfony2 - e.g.
247- ``Acme\DemoBundle\Controller\DefaultController::indexAction ``. This transformation
248- is specific to the :class: `Symfony\\ Bundle\\ FrameworkBundle\\ Controller\\ ControllerResolver `
249- sub-class used by the Symfony2 Framework.
245+ is changed to another string that contains the full class and method
246+ name of the controller by following the convention used in Symfony2 - e.g.
247+ ``Acme\DemoBundle\Controller\DefaultController::indexAction ``. This transformation
248+ is specific to the :class: `Symfony\\ Bundle\\ FrameworkBundle\\ Controller\\ ControllerResolver `
249+ sub-class used by the Symfony2 Framework.
250250
251251 b) A new instance of your controller class is instantiated with no
252- constructor arguments.
252+ constructor arguments.
253253
254254 c) If the controller implements :class: `Symfony\\ Component\\ DependencyInjection\\ ContainerAwareInterface `,
255- ``setContainer `` is called on the controller object and the container
256- is passed to it. This step is also specific to the :class: `Symfony\\ Bundle\\ FrameworkBundle\\ Controller\\ ControllerResolver `
257- sub-class used by the Symfony2 Framework.
255+ ``setContainer `` is called on the controller object and the container
256+ is passed to it. This step is also specific to the :class: `Symfony\\ Bundle\\ FrameworkBundle\\ Controller\\ ControllerResolver `
257+ sub-class used by the Symfony2 Framework.
258258
259- There are also a few other variations on the above process (e.g. if
260- you're registering your controllers as services).
259+ There are also a few other variations on the above process (e.g. if
260+ you're registering your controllers as services).
261261
262262.. _component-http-kernel-kernel-controller :
263263
@@ -325,14 +325,14 @@ of arguments that should be passed when executing that callable.
325325 to determine which value should be passed for each argument:
326326
327327 a) If the ``Request `` attributes bag contains a key that matches the name
328- of the argument, that value is used. For example, if the first argument
329- to a controller is ``$slug ``, and there is a ``slug `` key in the ``Request ``
330- ``attributes `` bag, that value is used (and typically this value came
331- from the ``RouterListener ``).
328+ of the argument, that value is used. For example, if the first argument
329+ to a controller is ``$slug ``, and there is a ``slug `` key in the ``Request ``
330+ ``attributes `` bag, that value is used (and typically this value came
331+ from the ``RouterListener ``).
332332
333333 b) If the argument in the controller is type-hinted with Symfony's
334- :class: `Symfony\\ Component\\ HttpFoundation\\ Request ` object, then the
335- ``Request `` is passed in as the value.
334+ :class: `Symfony\\ Component\\ HttpFoundation\\ Request ` object, then the
335+ ``Request `` is passed in as the value.
336336
337337.. _component-http-kernel-calling-controller :
338338
@@ -528,20 +528,20 @@ below for more details).
528528 The listener has several goals:
529529
530530 1) The thrown exception is converted into a
531- :class: `Symfony\\ Component\\ HttpKernel\\ Exception\\ FlattenException `
532- object, which contains all the information about the request, but which
533- can be printed and serialized.
531+ :class: `Symfony\\ Component\\ HttpKernel\\ Exception\\ FlattenException `
532+ object, which contains all the information about the request, but which
533+ can be printed and serialized.
534534
535535 2) If the original exception implements
536- :class: `Symfony\\ Component\\ HttpKernel\\ Exception\\ HttpExceptionInterface `,
537- then ``getStatusCode `` and ``getHeaders `` are called on the exception
538- and used to populate the headers and status code of the ``FlattenException ``
539- object. The idea is that these are used in the next step when creating
540- the final response.
536+ :class: `Symfony\\ Component\\ HttpKernel\\ Exception\\ HttpExceptionInterface `,
537+ then ``getStatusCode `` and ``getHeaders `` are called on the exception
538+ and used to populate the headers and status code of the ``FlattenException ``
539+ object. The idea is that these are used in the next step when creating
540+ the final response.
541541
542542 3) A controller is executed and passed the flattened exception. The exact
543- controller to render is passed as a constructor argument to this listener.
544- This controller will return the final ``Response `` for this error page.
543+ controller to render is passed as a constructor argument to this listener.
544+ This controller will return the final ``Response `` for this error page.
545545
546546 **ExceptionListener in Security **
547547
@@ -570,8 +570,8 @@ each event has their own event object:
570570.. _component-http-kernel-event-table :
571571
572572+-------------------+-------------------------------+-------------------------------------------------------------------------------------+
573- | ** Name ** | ``KernelEvents `` ** Constant ** | ** Argument passed to the listener ** |
574- +-------------------+-------------------------------+------------------------------------------------------------------------------------- +
573+ | Name | ``KernelEvents `` Constant | Argument passed to the listener |
574+ +===================+===============================+===================================================================================== +
575575| kernel.request | ``KernelEvents::REQUEST `` | :class: `Symfony\\ Component\\ HttpKernel\\ Event\\ GetResponseEvent ` |
576576+-------------------+-------------------------------+-------------------------------------------------------------------------------------+
577577| kernel.controller | ``KernelEvents::CONTROLLER `` | :class: `Symfony\\ Component\\ HttpKernel\\ Event\\ FilterControllerEvent ` |
0 commit comments