Skip to content

Commit 0286546

Browse files
authored
use twig extensions namespaces
1 parent 2c516f3 commit 0286546

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

reference/dic_tags.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,8 +1263,7 @@ also have to be added as regular services:
12631263
.. code-block:: yaml
12641264
12651265
services:
1266-
Twig_Extensions_Extension_Intl:
1267-
class: Twig_Extensions_Extension_Intl
1266+
Twig\Extensions\IntlExtension:
12681267
tags: [twig.extension]
12691268
12701269
.. code-block:: xml
@@ -1276,7 +1275,7 @@ also have to be added as regular services:
12761275
http://symfony.com/schema/dic/services/services-1.0.xsd">
12771276
12781277
<services>
1279-
<service id="Twig_Extensions_Extension_Intl" class="Twig_Extensions_Extension_Intl">
1278+
<service id="Twig\Extensions\IntlExtension">
12801279
<tag name="twig.extension" />
12811280
</service>
12821281
</services>
@@ -1285,7 +1284,7 @@ also have to be added as regular services:
12851284
.. code-block:: php
12861285
12871286
$container
1288-
->register('Twig_Extensions_Extension_Intl', Twig_Extensions_Extension_Intl::class)
1287+
->register('Twig\Extensions\IntlExtension')
12891288
->addTag('twig.extension')
12901289
;
12911290

0 commit comments

Comments
 (0)