Skip to content

Commit 20b29e1

Browse files
Changed service id in Twig debug example
1 parent 4f605e6 commit 20b29e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

book/templating.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -1163,7 +1163,7 @@ needs to be enabled in the config:
11631163
11641164
# app/config/config.yml
11651165
services:
1166-
twig.extension.debug:
1166+
acme_hello.twig.extension.debug:
11671167
class: Twig_Extensions_Extension_Debug
11681168
tags:
11691169
- { name: 'twig.extension' }
@@ -1172,7 +1172,7 @@ needs to be enabled in the config:
11721172
11731173
<!-- app/config/config.xml -->
11741174
<services>
1175-
<service id="twig.extension.debug" class="Twig_Extensions_Extension_Debug">
1175+
<service id="acme_hello.twig.extension.debug" class="Twig_Extensions_Extension_Debug">
11761176
<tag name="twig.extension" />
11771177
</service>
11781178
</services>
@@ -1184,7 +1184,7 @@ needs to be enabled in the config:
11841184
11851185
$definition = new Definition('Twig_Extensions_Extension_Debug');
11861186
$definition->addTag('twig.extension');
1187-
$container->setDefinition('twig.extension.debug', $definition);
1187+
$container->setDefinition('acme_hello.twig.extension.debug', $definition);
11881188
11891189
11901190
Template parameters can then be dumped using the ``debug`` tag:

0 commit comments

Comments
 (0)