Skip to content

Commit 085b90a

Browse files
Florent DESPIERRESwouterj
Florent DESPIERRES
authored andcommitted
Service naming convension
Change the markdown service name to follow the naming convension.
1 parent a5d3bca commit 085b90a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

best_practices/templates.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ extension. The service definition only requires the path to the class:
8181
# app/config/services.yml
8282
services:
8383
# ...
84-
markdown:
84+
app.markdown:
8585
class: AppBundle\Utils\Markdown
8686
8787
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):
156156
services:
157157
app.twig.app_extension:
158158
class: AppBundle\Twig\AppExtension
159-
arguments: ['@markdown']
159+
arguments: ['@app.markdown']
160160
public: false
161161
tags:
162162
- { name: twig.extension }

0 commit comments

Comments
 (0)