@@ -662,7 +662,7 @@ Rendering a Template in Services
662
662
Inject the ``twig `` Symfony service into your own services and use its
663
663
``render() `` method. When using :doc: `service autowiring </service_container/autowiring >`
664
664
you 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 `_ ::
666
666
667
667
// src/Service/SomeService.php
668
668
namespace App\Service;
@@ -1648,24 +1648,25 @@ If you're using the default ``services.yaml`` configuration, this will already
1648
1648
work! Otherwise, :ref: `create a service <service-container-creating-service >`
1649
1649
for this class and :doc: `tag your service </service_container/tags >` with ``twig.runtime ``.
1650
1650
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
1653
1653
.. _`filters` : https://twig.symfony.com/doc/3.x/filters/index.html
1654
1654
.. _`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
1663
1655
.. _`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
1669
1656
.. _`global variables` : https://twig.symfony.com/doc/3.x/advanced.html#id1
1670
1657
.. _`hinclude.js` : https://mnot.github.io/hinclude/
1671
1658
.. _`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