Skip to content

Commit

Permalink
Service naming convension
Browse files Browse the repository at this point in the history
Change the markdown service name to follow the naming convension.
  • Loading branch information
Florent DESPIERRES authored and wouterj committed Aug 4, 2016
1 parent a5d3bca commit 085b90a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions best_practices/templates.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }
Expand Down

0 comments on commit 085b90a

Please sign in to comment.