8000 minor #6824 Service naming convension (orions) · symfony/symfony-docs@7e2b456 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7e2b456

Browse files
committed
minor #6824 Service naming convension (orions)
This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #6824). Discussion ---------- Service naming convension Change the markdown service name to follow the naming convension. Commits ------- 085b90a Service naming convension
2 parents a5d3bca + 085b90a commit 7e2b456

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)
0