@@ -592,7 +592,7 @@ Rendering a Template in Services
592592Inject the ``twig `` Symfony service into your own services and use its
593593``render() `` method. When using:doc: `service autowiring </service_container/autowiring >`
594594you only need to add an argument in the service constructor and type-hint it with
595- the:class: `Twig\\ Environment ` class ::
595+ the `Twig Environment `_ ::
596596
597597 // src/Service/SomeService.php
598598 namespace App\Service;
@@ -1582,23 +1582,24 @@ If you're using the default ``services.yaml`` configuration, this will already
15821582work! Otherwise,:ref: `create a service <service-container-creating-service >`
15831583for this class and:doc: `tag your service </service_container/tags >` with ``twig.runtime ``.
15841584
1585- .. _`Twig ` :https://twig.symfony.com
1586- .. _`tags ` :https://twig.symfony.com/doc/3.x/tags/index.html
1585+ .. _`Cross-Site Scripting ` :https://en.wikipedia.org/wiki/Cross-site_scripting
1586+ .. _`default Twig filters and functions ` :https://twig.symfony.com/doc/3.x/#reference
15871587.. _`filters` :https://twig.symfony.com/doc/3.x/filters/index.html
15881588.. _`functions` :https://twig.symfony.com/doc/3.x/functions/index.html
1589- .. _`with_context` :https://twig.symfony.com/doc/3.x/functions/include.html
1590- .. _`Twig template loader` :https://twig.symfony.com/doc/3.x/api.html#loaders
1591- .. _`Twig raw filter` :https://twig.symfony.com/doc/3.x/filters/raw.html
1592- .. _`Twig output escaping docs` :https://twig.symfony.com/doc/3.x/api.html#escaper-extension
1593- .. _`snake case` :https://en.wikipedia.org/wiki/Snake_case
1594- .. _`Twig template inheritance` :https://twig.symfony.com/doc/3.x/tags/extends.html
1595- .. _`Twig block tag` :https://twig.symfony.com/doc/3.x/tags/block.html
1596- .. _`Cross-Site Scripting` :https://en.wikipedia.org/wiki/Cross-site_scripting
15971589.. _`GitHub Actions` :https://docs.github.com/en/free-pro-team@latest/actions
1598- .. _`UX Twig Component` :https://symfony.com/bundles/ux-twig-component/current/index.html
1599- .. _`UX Live Component` :https://symfony.com/bundles/ux-live-component/current/index.html
1600- .. _`Twig Extensions` :https://twig.symfony.com/doc/3.x/advanced.html#creating-an-extension
1601- .. _`default Twig filters and functions` :https://twig.symfony.com/doc/3.x/#reference
1602- .. _`official Twig extensions` :https://github.com/twigphp?q=extra
16031590.. _`global variables` :https://twig.symfony.com/doc/3.x/advanced.html#id1
16041591.. _`hinclude.js` :https://mnot.github.io/hinclude/
1592+ .. _`official Twig extensions` :https://github.com/twigphp?q=extra
1593+ .. _`snake case` :https://en.wikipedia.org/wiki/Snake_case
1594+ .. _`tags` :https://twig.symfony.com/doc/3.x/tags/index.html
1595+ .. _`Twig block tag` :https://twig.symfony.com/doc/3.x/tags/block.html
1596+ .. _`Twig Environment` :https://github.com/twigphp/Twig/blob/3.x/src/Loader/FilesystemLoader.php
1597+ .. _`Twig Extensions` :https://twig.symfony.com/doc/3.x/advanced.html#creating-an-extension
1598+ .. _`Twig output escaping docs` :https://twig.symfony.com/doc/3.x/api.html#escaper-extension
1599+ .. _`Twig raw filter` :https://twig.symfony.com/doc/3.x/filters/raw.html
1600+ .. _`Twig template inheritance` :https://twig.symfony.com/doc/3.x/tags/extends.html
1601+ .. _`Twig template loader` :https://twig.symfony.com/doc/3.x/api.html#loaders
1602+ .. _`Twig` :https://twig.symfony.com
1603+ .. _`UX Live Component` :https://symfony.com/bundles/ux-live-component/current/index.html
1604+ .. _`UX Twig Component` :https://symfony.com/bundles/ux-twig-component/current/index.html
1605+ .. _`with_context` :https://twig.symfony.com/doc/3.x/functions/include.html