Skip to content

Commit c8fdee6

Browse files
committed
minor #15843 [Twig] Fix global variable name in XML config (sebpacz)
This PR was merged into the 5.3 branch. Discussion ---------- [Twig] Fix global variable name in XML config In the XML example, the global variable is named "foo" instead of "uuid". <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `5.x` for features of unreleased versions). --> Commits ------- 279af5c [Twig] Fix global variable name in XML config
2 parents 915bf49 + 279af5c commit c8fdee6

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)