@@ -30,7 +30,7 @@ on top of the previous one.
30
30
31
31
The deepest level is the :namespace: `Symfony\\ Component\\ HttpFoundation `
32
32
component. 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
34
34
variables:
35
35
36
36
* The :class: `Symfony\\ Component\\ HttpFoundation\\ Request ` class abstracts
@@ -424,6 +424,10 @@ and set a new ``Exception`` object, or do nothing::
424
424
.. versionadded :: 2.4
425
425
Support for HTTP status code constants was added in Symfony 2.4.
426
426
427
+ .. seealso ::
428
+
429
+ Read more on the :ref: `kernel.exception event <component-http-kernel-kernel-exception >`.
430
+
427
431
.. index ::
428
432
single: Event Dispatcher
429
433
@@ -434,10 +438,6 @@ The event dispatcher is a standalone component that is responsible for much
434
438
of the underlying logic and flow behind a Symfony request. For more information,
435
439
see the :doc: `Event Dispatcher Component Documentation </components/event_dispatcher/introduction >`.
436
440
437
- .. seealso ::
438
-
439
- Read more on the :ref: `kernel.exception event <component-http-kernel-kernel-exception >`.
440
-
441
441
.. index ::
442
442
single: Profiler
443
443
@@ -592,20 +592,20 @@ the configuration for the development environment:
592
592
593
593
// load the profiler
594
594
$container->loadFromExtension('framework', array(
595
- 'profiler' => array('only-exceptions ' => false),
595
+ 'profiler' => array('only_exceptions ' => false),
596
596
));
597
597
598
598
// enable the web profiler
599
599
$container->loadFromExtension('web_profiler', array(
600
600
'toolbar' => true,
601
- 'intercept-redirects ' => true,
601
+ 'intercept_redirects ' => true,
602
602
'verbose' => true,
603
603
));
604
604
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
606
606
when an exception is thrown by the application.
607
607
608
- When ``intercept-redirects `` is set to ``true ``, the web profiler intercepts
608
+ When ``intercept_redirects `` is set to ``true ``, the web profiler intercepts
609
609
the redirects and gives you the opportunity to look at the collected data
610
610
before following the redirect.
611
611
@@ -643,7 +643,7 @@ If you enable the web profiler, you also need to mount the profiler routes:
643
643
);
644
644
645
645
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 ``
647
647
settings limits profiling to 500 pages, but what if you want to get
648
648
information when the client IP comes from a specific address, or for a limited
649
649
portion of the website? You can use a Profiler Matcher, learn more about that
0 commit comments