@@ -638,7 +638,7 @@ Rendering a Template in Services
638
638
Inject the ``twig `` Symfony service into your own services and use its
639
639
``render() `` method. When using :doc: `service autowiring </service_container/autowiring >`
640
640
you 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 `_ ::
642
642
643
643
// src/Service/SomeService.php
644
644
namespace App\Service;
@@ -1620,24 +1620,25 @@ If you're using the default ``services.yaml`` configuration, this will already
1620
1620
work! Otherwise, :ref: `create a service <service-container-creating-service >`
1621
1621
for this class and :doc: `tag your service </service_container/tags >` with ``twig.runtime ``.
1622
1622
1623
- .. _`Twig ` : https://twig.symfony.com
1624
- .. _`tags ` : https://twig.symfony.com/doc/3.x/tags/index.html
1623
+ .. _`Cross-Site Scripting ` : https://en.wikipedia.org/wiki/Cross-site_scripting
1624
+ .. _`default Twig filters and functions ` : https://twig.symfony.com/doc/3.x/#reference
1625
1625
.. _`filters` : https://twig.symfony.com/doc/3.x/filters/index.html
1626
1626
.. _`functions` : https://twig.symfony.com/doc/3.x/functions/index.html
1627
- .. _`with_context` : https://twig.symfony.com/doc/3.x/functions/include.html
1628
- .. _`Twig template loader` : https://twig.symfony.com/doc/3.x/api.html#loaders
1629
- .. _`Twig raw filter` : https://twig.symfony.com/doc/3.x/filters/raw.html
1630
- .. _`Twig output escaping docs` : https://twig.symfony.com/doc/3.x/api.html#escaper-extension
1631
- .. _`snake case` : https://en.wikipedia.org/wiki/Snake_case
1632
- .. _`Twig template inheritance` : https://twig.symfony.com/doc/3.x/tags/extends.html
1633
- .. _`Twig block tag` : https://twig.symfony.com/doc/3.x/tags/block.html
1634
- .. _`Cross-Site Scripting` : https://en.wikipedia.org/wiki/Cross-site_scripting
1635
1627
.. _`GitHub Actions` : https://docs.github.com/en/free-pro-team@latest/actions
1636
- .. _`UX Twig Component` : https://symfony.com/bundles/ux-twig-component/current/index.html
1637
- .. _`UX Live Component` : https://symfony.com/bundles/ux-live-component/current/index.html
1638
- .. _`Twig Extensions` : https://twig.symfony.com/doc/3.x/advanced.html#creating-an-extension
1639
- .. _`default Twig filters and functions` : https://twig.symfony.com/doc/3.x/#reference
1640
- .. _`official Twig extensions` : https://github.com/twigphp?q=extra
1641
1628
.. _`global variables` : https://twig.symfony.com/doc/3.x/advanced.html#id1
1642
1629
.. _`hinclude.js` : https://mnot.github.io/hinclude/
1643
1630
.. _`Turbo Streams` : https://symfony.com/bundles/ux-turbo/current/index.html
1631
+ .. _`official Twig extensions` : https://github.com/twigphp?q=extra
1632
+ .. _`snake case` : https://en.wikipedia.org/wiki/Snake_case
1633
+ .. _`tags` : https://twig.symfony.com/doc/3.x/tags/index.html
1634
+ .. _`Twig block tag` : https://twig.symfony.com/doc/3.x/tags/block.html
1635
+ .. _`Twig Environment` : https://github.com/twigphp/Twig/blob/3.x/src/Loader/FilesystemLoader.php
1636
+ .. _`Twig Extensions` : https://twig.symfony.com/doc/3.x/advanced.html#creating-an-extension
1637
+ .. _`Twig output escaping docs` : https://twig.symfony.com/doc/3.x/api.html#escaper-extension
1638
+ .. _`Twig raw filter` : https://twig.symfony.com/doc/3.x/filters/raw.html
1639
+ .. _`Twig template inheritance` : https://twig.symfony.com/doc/3.x/tags/extends.html
1640
+ .. _`Twig template loader` : https://twig.symfony.com/doc/3.x/api.html#loaders
1641
+ .. _`Twig` : https://twig.symfony.com
1642
+ .. _`UX Live Component` : https://symfony.com/bundles/ux-live-component/current/index.html
1643
+ .. _`UX Twig Component` : https://symfony.com/bundles/ux-twig-component/current/index.html
1644
+ .. _`with_context` : https://twig.symfony.com/doc/3.x/functions/include.html
0 commit comments