Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Follow-up change on #4740 #4939

Closed
wants to merge 1 commit into from
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