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
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: