Skip to content

Commit 90a5e8e

Browse files
committed
Merge pull request #3092 from bicpi/fix_parameter_names
[Internals] Fix parameter names regarding hyphen/underscore
2 parents 1fe0c6c + cac861f commit 90a5e8e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

book/internals.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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
606606
when 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
609609
the redirects and gives you the opportunity to look at the collected data
610610
before 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``
647647
settings limits profiling to 500 pages, but what if you want to get
648648
information when the client IP comes from a specific address, or for a limited
649649
portion of the website? You can use a Profiler Matcher, learn more about that

0 commit comments

Comments
 (0)