Skip to content

Commit 279af5c

Browse files
authored
[Twig] Fix global variable name in XML config
In the XML example, the global variable is named "foo" instead of "uuid".
1 parent 915bf49 commit 279af5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templating/global_variables.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ the ``@`` character, which is the usual syntax to
9292
9393
<twig:config>
9494
<!-- ... -->
95-
<twig:global key="foo" id="App\Generator\UuidGenerator" type="service"/>
95+
<twig:global key="uuid" id="App\Generator\UuidGenerator" type="service"/>
9696
</twig:config>
9797
</container>
9898

0 commit comments

Comments
 (0)