@@ -610,7 +610,7 @@ Rendering a Template in Services
610
610
Inject the ``twig `` Symfony service into your own services and use its
611
611
``render() `` method. When using :doc: `service autowiring </service_container/autowiring >`
612
612
you only need to add an argument in the service constructor and type-hint it with
613
- the :class: `Twig\\ Environment ` class ::
613
+ the `Twig Environment `_ ::
614
614
615
615
// src/Service/SomeService.php
616
616
namespace App\Service;
@@ -1594,23 +1594,24 @@ If you're using the default ``services.yaml`` configuration, this will already
1594
1594
work! Otherwise, :ref: `create a service <service-container-creating-service >`
1595
1595
for this class and :doc: `tag your service </service_container/tags >` with ``twig.runtime ``.
1596
1596
1597
- .. _`Twig ` : https://twig.symfony.com
1598
- .. _`tags ` : https://twig.symfony.com/doc/3.x/tags/index.html
1597
+ .. _`Cross-Site Scripting ` : https://en.wikipedia.org/wiki/Cross-site_scripting
1598
+ .. _`default Twig filters and functions ` : https://twig.symfony.com/doc/3.x/#reference
1599
1599
.. _`filters` : https://twig.symfony.com/doc/3.x/filters/index.html
1600
1600
.. _`functions` : https://twig.symfony.com/doc/3.x/functions/index.html
1601
- .. _`with_context` : https://twig.symfony.com/doc/3.x/functions/include.html
1602
- .. _`Twig template loader` : https://twig.symfony.com/doc/3.x/api.html#loaders
1603
- .. _`Twig raw filter` : https://twig.symfony.com/doc/3.x/filters/raw.html
1604
- .. _`Twig output escaping docs` : https://twig.symfony.com/doc/3.x/api.html#escaper-extension
1605
- .. _`snake case` : https://en.wikipedia.org/wiki/Snake_case
1606
- .. _`Twig template inheritance` : https://twig.symfony.com/doc/3.x/tags/extends.html
1607
- .. _`Twig block tag` : https://twig.symfony.com/doc/3.x/tags/block.html
1608
- .. _`Cross-Site Scripting` : https://en.wikipedia.org/wiki/Cross-site_scripting
1609
1601
.. _`GitHub Actions` : https://docs.github.com/en/free-pro-team@latest/actions
1610
- .. _`UX Twig Component` : https://symfony.com/bundles/ux-twig-component/current/index.html
1611
- .. _`UX Live Component` : https://symfony.com/bundles/ux-live-component/current/index.html
1612
- .. _`Twig Extensions` : https://twig.symfony.com/doc/3.x/advanced.html#creating-an-extension
1613
- .. _`default Twig filters and functions` : https://twig.symfony.com/doc/3.x/#reference
1614
- .. _`official Twig extensions` : https://github.com/twigphp?q=extra
1615
1602
.. _`global variables` : https://twig.symfony.com/doc/3.x/advanced.html#id1
1616
1603
.. _`hinclude.js` : https://mnot.github.io/hinclude/
1604
+ .. _`official Twig extensions` : https://github.com/twigphp?q=extra
1605
+ .. _`snake case` : https://en.wikipedia.org/wiki/Snake_case
1606
+ .. _`tags` : https://twig.symfony.com/doc/3.x/tags/index.html
1607
+ .. _`Twig block tag` : https://twig.symfony.com/doc/3.x/tags/block.html
1608
+ .. _`Twig Environment` : https://github.com/twigphp/Twig/blob/3.x/src/Loader/FilesystemLoader.php
1609
+ .. _`Twig Extensions` : https://twig.symfony.com/doc/3.x/advanced.html#creating-an-extension
1610
+ .. _`Twig output escaping docs` : https://twig.symfony.com/doc/3.x/api.html#escaper-extension
1611
+ .. _`Twig raw filter` : https://twig.symfony.com/doc/3.x/filters/raw.html
1612
+ .. _`Twig template inheritance` : https://twig.symfony.com/doc/3.x/tags/extends.html
1613
+ .. _`Twig template loader` : https://twig.symfony.com/doc/3.x/api.html#loaders
1614
+ .. _`Twig` : https://twig.symfony.com
1615
+ .. _`UX Live Component` : https://symfony.com/bundles/ux-live-component/current/index.html
1616
+ .. _`UX Twig Component` : https://symfony.com/bundles/ux-twig-component/current/index.html
1617
+ .. _`with_context` : https://twig.symfony.com/doc/3.x/functions/include.html
0 commit comments