Skip to content

Commit 309f424

Browse files
author
Christian Schmidt
committed
Follow-up change on symfony#4740
This brings the class names back in sync after the change in PR symfony#4740.
1 parent 9ec09ee commit 309f424

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: cookbook/templating/twig_extension.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,15 @@ Now you must let the Service Container know about your newly created Twig Extens
7373
# app/config/services.yml
7474
services:
7575
app.twig_extension:
76-
class: AppBundle\Twig\AcmeExtension
76+
class: AppBundle\Twig\AppExtension
7777
tags:
7878
- { name: twig.extension }
7979
8080
.. code-block:: xml
8181
8282
<!-- app/config/services.xml -->
8383
<services>
84-
<service id="app.twig_extension" class="AppBundle\Twig\AcmeExtension">
84+
<service id="app.twig_extension" class="AppBundle\Twig\AppExtension">
8585
<tag name="twig.extension" />
8686
</service>
8787
</services>
@@ -92,7 +92,7 @@ Now you must let the Service Container know about your newly created Twig Extens
9292
use Symfony\Component\DependencyInjection\Definition;
9393
9494
$container
95-
->register('app.twig_extension', '\AppBundle\Twig\AcmeExtension')
95+
->register('app.twig_extension', '\AppBundle\Twig\AppExtension')
9696
->addTag('twig.extension');
9797
9898
.. note::

0 commit comments

Comments
 (0)