diff --git a/best_practices/templates.rst b/best_practices/templates.rst index 20694029c37..75c37044a19 100644 --- a/best_practices/templates.rst +++ b/best_practices/templates.rst @@ -81,7 +81,7 @@ extension. The service definition only requires the path to the class: # app/config/services.yml services: # ... - markdown: + app.markdown: class: AppBundle\Utils\Markdown And the ``Markdown`` class just needs to define one single method to transform @@ -156,7 +156,7 @@ name is irrelevant because you never use it in your own code): services: app.twig.app_extension: class: AppBundle\Twig\AppExtension - arguments: ['@markdown'] + arguments: ['@app.markdown'] public: false tags: - { name: twig.extension }