@@ -638,7 +638,7 @@ Rendering a Template in Services
638638Inject the ``twig `` Symfony service into your own services and use its
639639``render() `` method. When using :doc: `service autowiring </service_container/autowiring >`
640640you only need to add an argument in the service constructor and type-hint it with
641- the :class: `Twig\\ Environment ` class ::
641+ the `Twig Environment `_ ::
642642
643643 // src/Service/SomeService.php
644644 namespace App\Service;
@@ -1627,24 +1627,25 @@ If you're using the default ``services.yaml`` configuration, this will already
16271627work! Otherwise, :ref: `create a service <service-container-creating-service >`
16281628for this class and :doc: `tag your service </service_container/tags >` with ``twig.runtime ``.
16291629
1630- .. _`Twig ` : https://twig.symfony.com
1631- .. _`tags ` : https://twig.symfony.com/doc/3.x/tags/index.html
1630+ .. _`Cross-Site Scripting ` : https://en.wikipedia.org/wiki/Cross-site_scripting
1631+ .. _`default Twig filters and functions ` : https://twig.symfony.com/doc/3.x/#reference
16321632.. _`filters` : https://twig.symfony.com/doc/3.x/filters/index.html
16331633.. _`functions` : https://twig.symfony.com/doc/3.x/functions/index.html
1634- .. _`with_context` : https://twig.symfony.com/doc/3.x/functions/include.html
1635- .. _`Twig template loader` : https://twig.symfony.com/doc/3.x/api.html#loaders
1636- .. _`Twig raw filter` : https://twig.symfony.com/doc/3.x/filters/raw.html
1637- .. _`Twig output escaping docs` : https://twig.symfony.com/doc/3.x/api.html#escaper-extension
1638- .. _`snake case` : https://en.wikipedia.org/wiki/Snake_case
1639- .. _`Twig template inheritance` : https://twig.symfony.com/doc/3.x/tags/extends.html
1640- .. _`Twig block tag` : https://twig.symfony.com/doc/3.x/tags/block.html
1641- .. _`Cross-Site Scripting` : https://en.wikipedia.org/wiki/Cross-site_scripting
16421634.. _`GitHub Actions` : https://docs.github.com/en/free-pro-team@latest/actions
1643- .. _`UX Twig Component` : https://symfony.com/bundles/ux-twig-component/current/index.html
1644- .. _`UX Live Component` : https://symfony.com/bundles/ux-live-component/current/index.html
1645- .. _`Twig Extensions` : https://twig.symfony.com/doc/3.x/advanced.html#creating-an-extension
1646- .. _`default Twig filters and functions` : https://twig.symfony.com/doc/3.x/#reference
1647- .. _`official Twig extensions` : https://github.com/twigphp?q=extra
16481635.. _`global variables` : https://twig.symfony.com/doc/3.x/advanced.html#id1
16491636.. _`hinclude.js` : https://mnot.github.io/hinclude/
16501637.. _`Turbo Streams` : https://symfony.com/bundles/ux-turbo/current/index.html
1638+ .. _`official Twig extensions` : https://github.com/twigphp?q=extra
1639+ .. _`snake case` : https://en.wikipedia.org/wiki/Snake_case
1640+ .. _`tags` : https://twig.symfony.com/doc/3.x/tags/index.html
1641+ .. _`Twig block tag` : https://twig.symfony.com/doc/3.x/tags/block.html
1642+ .. _`Twig Environment` : https://github.com/twigphp/Twig/blob/3.x/src/Loader/FilesystemLoader.php
1643+ .. _`Twig Extensions` : https://twig.symfony.com/doc/3.x/advanced.html#creating-an-extension
1644+ .. _`Twig output escaping docs` : https://twig.symfony.com/doc/3.x/api.html#escaper-extension
1645+ .. _`Twig raw filter` : https://twig.symfony.com/doc/3.x/filters/raw.html
1646+ .. _`Twig template inheritance` : https://twig.symfony.com/doc/3.x/tags/extends.html
1647+ .. _`Twig template loader` : https://twig.symfony.com/doc/3.x/api.html#loaders
1648+ .. _`Twig` : https://twig.symfony.com
1649+ .. _`UX Live Component` : https://symfony.com/bundles/ux-live-component/current/index.html
1650+ .. _`UX Twig Component` : https://symfony.com/bundles/ux-twig-component/current/index.html
1651+ .. _`with_context` : https://twig.symfony.com/doc/3.x/functions/include.html
0 commit comments