@@ -30,7 +30,7 @@ on top of the previous one.
3030
3131The deepest level is the :namespace: `Symfony\\ Component\\ HttpFoundation `
3232component. HttpFoundation provides the main objects needed to deal with HTTP.
33- It is an Object-Oriented abstraction of some native PHP functions and
33+ It is an object-oriented abstraction of some native PHP functions and
3434variables:
3535
3636* The :class: `Symfony\\ Component\\ HttpFoundation\\ Request ` class abstracts
@@ -424,6 +424,10 @@ and set a new ``Exception`` object, or do nothing::
424424 .. versionadded :: 2.4
425425 Support for HTTP status code constants was added in Symfony 2.4.
426426
427+ .. seealso ::
428+
429+ Read more on the :ref: `kernel.exception event <component-http-kernel-kernel-exception >`.
430+
427431.. index ::
428432 single: Event Dispatcher
429433
@@ -434,10 +438,6 @@ The event dispatcher is a standalone component that is responsible for much
434438of the underlying logic and flow behind a Symfony request. For more information,
435439see the :doc: `Event Dispatcher Component Documentation </components/event_dispatcher/introduction >`.
436440
437- .. seealso ::
438-
439- Read more on the :ref: `kernel.exception event <component-http-kernel-kernel-exception >`.
440-
441441.. index ::
442442 single: Profiler
443443
@@ -592,20 +592,20 @@ the configuration for the development environment:
592592
593593 // load the profiler
594594 $container->loadFromExtension('framework', array(
595- 'profiler' => array('only-exceptions ' => false),
595+ 'profiler' => array('only_exceptions ' => false),
596596 ));
597597
598598 // enable the web profiler
599599 $container->loadFromExtension('web_profiler', array(
600600 'toolbar' => true,
601- 'intercept-redirects ' => true,
601+ 'intercept_redirects ' => true,
602602 'verbose' => true,
603603 ));
604604
605- When ``only-exceptions `` is set to ``true ``, the profiler only collects data
605+ When ``only_exceptions `` is set to ``true ``, the profiler only collects data
606606when an exception is thrown by the application.
607607
608- When ``intercept-redirects `` is set to ``true ``, the web profiler intercepts
608+ When ``intercept_redirects `` is set to ``true ``, the web profiler intercepts
609609the redirects and gives you the opportunity to look at the collected data
610610before following the redirect.
611611
@@ -643,7 +643,7 @@ If you enable the web profiler, you also need to mount the profiler routes:
643643 );
644644
645645 As the profiler adds some overhead, you might want to enable it only under
646- certain circumstances in the production environment. The ``only-exceptions ``
646+ certain circumstances in the production environment. The ``only_exceptions ``
647647settings limits profiling to 500 pages, but what if you want to get
648648information when the client IP comes from a specific address, or for a limited
649649portion of the website? You can use a Profiler Matcher, learn more about that
0 commit comments