Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cookbook/templating/twig_extension.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ Now you must let the Service Container know about your newly created Twig Extens
# app/config/services.yml
services:
app.twig_extension:
class: AppBundle\Twig\AcmeExtension
class: AppBundle\Twig\AppExtension
tags:
- { name: twig.extension }
.. code-block:: xml
<!-- app/config/services.xml -->
<services>
<service id="app.twig_extension" class="AppBundle\Twig\AcmeExtension">
<service id="app.twig_extension" class="AppBundle\Twig\AppExtension">
<tag name="twig.extension" />
</service>
</services>
Expand All @@ -92,7 +92,7 @@ Now you must let the Service Container know about your newly created Twig Extens
use Symfony\Component\DependencyInjection\Definition;
$container
->register('app.twig_extension', '\AppBundle\Twig\AcmeExtension')
->register('app.twig_extension', '\AppBundle\Twig\AppExtension')
->addTag('twig.extension');
.. note::
Expand Down