File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -73,15 +73,15 @@ Now you must let the Service Container know about your newly created Twig Extens
73
73
# app/config/services.yml
74
74
services :
75
75
app.twig_extension :
76
- class : AppBundle\Twig\AcmeExtension
76
+ class : AppBundle\Twig\AppExtension
77
77
tags :
78
78
- { name: twig.extension }
79
79
80
80
.. code-block :: xml
81
81
82
82
<!-- app/config/services.xml -->
83
83
<services >
84
- <service id =" app.twig_extension" class =" AppBundle\Twig\AcmeExtension " >
84
+ <service id =" app.twig_extension" class =" AppBundle\Twig\AppExtension " >
85
85
<tag name =" twig.extension" />
86
86
</service >
87
87
</services >
@@ -92,7 +92,7 @@ Now you must let the Service Container know about your newly created Twig Extens
92
92
use Symfony\Component\DependencyInjection\Definition;
93
93
94
94
$container
95
- ->register('app.twig_extension', '\AppBundle\Twig\AcmeExtension ')
95
+ ->register('app.twig_extension', '\AppBundle\Twig\AppExtension ')
96
96
->addTag('twig.extension');
97
97
98
98
.. note ::
You can’t perform that action at this time.
0 commit comments