8000 Add config-block for intercept_redirects · web-dev/symfony-docs@b0c89ae · GitHub
[go: up one dir, main page]

Skip to content

Commit b0c89ae

Browse files
johnkaryweaverryan
authored andcommitted
Add config-block for intercept_redirects
1 parent 4e9fc3e commit b0c89ae

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

cookbook/email/dev_environment.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,29 @@ page.
127127
Instead, you'll need to set the ``intercept_redirects`` option to ``true`` in
128128
the ``config_dev.yml`` file, which will cause the redirect to stop and allow
129129
you to open the report with details of the sent emails.
130+
131+
.. configuration-block::
132+
133+
.. code-block:: yaml
134+
135+
# app/config/config_dev.yml
136+
web_profiler:
137+
intercept_redirects: true
138+
139+
.. code-block:: xml
140+
141+
<!-- app/config/config_dev.xml -->
142+
143+
<!-- xmlns:webprofiler="http://symfony.com/schema/dic/webprofiler" -->
144+
<!-- xsi:schemaLocation="http://symfony.com/schema/dic/webprofiler http://symfony.com/schema/dic/webprofiler/webprofiler-1.0.xsd"> -->
145+
146+
<webprofiler:config
147+
intercept-redirects="true"
148+
/>
149+
150+
.. code-block:: php
151+
152+
// app/config/config_dev.php
153+
$container->loadFromExtension('web_profiler', array(
154+
'intercept_redirects' => 'true',
155+
));

0 commit comments

Comments
 (0)
0