Skip to content

Commit 085eab5

Browse files
committed
Minor reword
1 parent 1573013 commit 085eab5

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

reference/dic_tags.rst

+3-7
Original file line numberDiff line numberDiff line change
@@ -1179,12 +1179,12 @@ also register it manually:
11791179
.. _reference-dic-tags-twig-runtime:
11801180

11811181
twig.runtime
1182-
--------------
1182+
------------
11831183

11841184
**Purpose**: To register a custom Lazy-Loaded Twig Extension
11851185

1186-
To enable a Lazy Loaded Twig extension, add it as a regular service in one of your
1187-
configuration and tag it with ``twig.runtime``. If you're using the
1186+
:ref:`Lazy-Loaded Twig Extensions <lazy-loaded-twig-extensions>` are defined as
1187+
regular services but the need to be tagged with ``twig.runtime``. If you're using the
11881188
:ref:`default services.yaml configuration <service-container-services-load-example>`,
11891189
the service is auto-registered and auto-tagged. But, you can also register it manually:
11901190

@@ -1220,10 +1220,6 @@ the service is auto-registered and auto-tagged. But, you can also register it ma
12201220
->register(AppExtension::class)
12211221
->addTag('twig.runtime')
12221222
;
1223-
1224-
For information on how to create the actual Runtime Twig Extension class, see
1225-
`Twig's documentation`_ on the topic or read the
1226-
:ref:`Creating Lazy-Loaded Twig Extensions <lazy-loaded-twig-extensions>` article.
12271223
12281224
validator.constraint_validator
12291225
------------------------------

0 commit comments

Comments
 (0)