@@ -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;
@@ -1627,24 +1627,25 @@ If you're using the default ``services.yaml`` configuration, this will already
1627
1627
work! Otherwise, :ref: `create a service <service-container-creating-service >`
1628
1628
for this class and :doc: `tag your service </service_container/tags >` with ``twig.runtime ``.
1629
1629
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
1632
1632
.. _`filters` : https://twig.symfony.com/doc/3.x/filters/index.html
1633
1633
.. _`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
1642
1634
.. _`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
1648
1635
.. _`global variables` : https://twig.symfony.com/doc/3.x/advanced.html#id1
1649
1636
.. _`hinclude.js` : https://mnot.github.io/hinclude/
1650
1637
.. _`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