Skip to content

Commit 2c516f3

Browse files
authored
class attribute still needed in some cases
The class attribute is still needed for non namespaced classes like Twig_Extensions_Extension_Intl
1 parent 15185ab commit 2c516f3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

reference/dic_tags.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,6 +1264,7 @@ also have to be added as regular services:
12641264
12651265
services:
12661266
Twig_Extensions_Extension_Intl:
1267+
class: Twig_Extensions_Extension_Intl
12671268
tags: [twig.extension]
12681269
12691270
.. code-block:: xml
@@ -1275,7 +1276,7 @@ also have to be added as regular services:
12751276
http://symfony.com/schema/dic/services/services-1.0.xsd">
12761277
12771278
<services>
1278-
<service id="Twig_Extensions_Extension_Intl">
1279+
<service id="Twig_Extensions_Extension_Intl" class="Twig_Extensions_Extension_Intl">
12791280
<tag name="twig.extension" />
12801281
</service>
12811282
</services>
@@ -1284,7 +1285,7 @@ also have to be added as regular services:
12841285
.. code-block:: php
12851286
12861287
$container
1287-
->register('Twig_Extensions_Extension_Intl')
1288+
->register('Twig_Extensions_Extension_Intl', Twig_Extensions_Extension_Intl::class)
12881289
->addTag('twig.extension')
12891290
;
12901291

0 commit comments

Comments
 (0)