Skip to content

Commit 7427051

Browse files
committed
Set twig service as private
During the best practices workshop it was suggested that it's best to set services to private if they won't be accessed from your code/container
1 parent cad4d3f commit 7427051

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

best_practices/templates.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ name is irrelevant because you never use it in your own code):
153153
app.twig.app_extension:
154154
class: AppBundle\Twig\AppExtension
155155
arguments: ["@markdown"]
156+
public: false
156157
tags:
157158
- { name: twig.extension }
158159

0 commit comments

Comments
 (0)