@@ -662,7 +662,7 @@ Rendering a Template in Services
662662Inject the ``twig `` Symfony service into your own services and use its
663663``render() `` method. When using :doc: `service autowiring </service_container/autowiring >`
664664you only need to add an argument in the service constructor and type-hint it with
665- the :class: `Twig\\ Environment ` class ::
665+ the `Twig Environment `_ ::
666666
667667 // src/Service/SomeService.php
668668 namespace App\Service;
@@ -1648,24 +1648,25 @@ If you're using the default ``services.yaml`` configuration, this will already
16481648work! Otherwise, :ref: `create a service <service-container-creating-service >`
16491649for this class and :doc: `tag your service </service_container/tags >` with ``twig.runtime ``.
16501650
1651- .. _`Twig ` : https://twig.symfony.com
1652- .. _`tags ` : https://twig.symfony.com/doc/3.x/tags/index.html
1651+ .. _`Cross-Site Scripting ` : https://en.wikipedia.org/wiki/Cross-site_scripting
1652+ .. _`default Twig filters and functions ` : https://twig.symfony.com/doc/3.x/#reference
16531653.. _`filters` : https://twig.symfony.com/doc/3.x/filters/index.html
16541654.. _`functions` : https://twig.symfony.com/doc/3.x/functions/index.html
1655- .. _`with_context` : https://twig.symfony.com/doc/3.x/functions/include.html
1656- .. _`Twig template loader` : https://twig.symfony.com/doc/3.x/api.html#loaders
1657- .. _`Twig raw filter` : https://twig.symfony.com/doc/3.x/filters/raw.html
1658- .. _`Twig output escaping docs` : https://twig.symfony.com/doc/3.x/api.html#escaper-extension
1659- .. _`snake case` : https://en.wikipedia.org/wiki/Snake_case
1660- .. _`Twig template inheritance` : https://twig.symfony.com/doc/3.x/tags/extends.html
1661- .. _`Twig block tag` : https://twig.symfony.com/doc/3.x/tags/block.html
1662- .. _`Cross-Site Scripting` : https://en.wikipedia.org/wiki/Cross-site_scripting
16631655.. _`GitHub Actions` : https://docs.github.com/en/free-pro-team@latest/actions
1664- .. _`UX Twig Component` : https://symfony.com/bundles/ux-twig-component/current/index.html
1665- .. _`UX Live Component` : https://symfony.com/bundles/ux-live-component/current/index.html
1666- .. _`Twig Extensions` : https://twig.symfony.com/doc/3.x/advanced.html#creating-an-extension
1667- .. _`default Twig filters and functions` : https://twig.symfony.com/doc/3.x/#reference
1668- .. _`official Twig extensions` : https://github.com/twigphp?q=extra
16691656.. _`global variables` : https://twig.symfony.com/doc/3.x/advanced.html#id1
16701657.. _`hinclude.js` : https://mnot.github.io/hinclude/
16711658.. _`Turbo Streams` : https://symfony.com/bundles/ux-turbo/current/index.html
1659+ .. _`official Twig extensions` : https://github.com/twigphp?q=extra
1660+ .. _`snake case` : https://en.wikipedia.org/wiki/Snake_case
1661+ .. _`tags` : https://twig.symfony.com/doc/3.x/tags/index.html
1662+ .. _`Twig block tag` : https://twig.symfony.com/doc/3.x/tags/block.html
1663+ .. _`Twig Environment` : https://github.com/twigphp/Twig/blob/3.x/src/Loader/FilesystemLoader.php
1664+ .. _`Twig Extensions` : https://twig.symfony.com/doc/3.x/advanced.html#creating-an-extension
1665+ .. _`Twig output escaping docs` : https://twig.symfony.com/doc/3.x/api.html#escaper-extension
1666+ .. _`Twig raw filter` : https://twig.symfony.com/doc/3.x/filters/raw.html
1667+ .. _`Twig template inheritance` : https://twig.symfony.com/doc/3.x/tags/extends.html
1668+ .. _`Twig template loader` : https://twig.symfony.com/doc/3.x/api.html#loaders
1669+ .. _`Twig` : https://twig.symfony.com
1670+ .. _`UX Live Component` : https://symfony.com/bundles/ux-live-component/current/index.html
1671+ .. _`UX Twig Component` : https://symfony.com/bundles/ux-twig-component/current/index.html
1672+ .. _`with_context` : https://twig.symfony.com/doc/3.x/functions/include.html
0 commit comments