diff --git a/cookbook/templating/twig_extension.rst b/cookbook/templating/twig_extension.rst index 993a9fa73d4..c939cf7ed53 100644 --- a/cookbook/templating/twig_extension.rst +++ b/cookbook/templating/twig_extension.rst @@ -73,7 +73,7 @@ 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 } @@ -81,7 +81,7 @@ Now you must let the Service Container know about your newly created Twig Extens - + @@ -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:: pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy