Skip to content

Commit aa9d982

Browse files
committed
minor #4697 Set twig service as private (ifdattic)
This PR was merged into the 2.3 branch. Discussion ---------- 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 (for performance reasons) | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.3 | Fixed tickets | Commits ------- 7427051 Set twig service as private
2 parents 09f9d3d + 7427051 commit aa9d982

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

best_practices/templates.rst

+1
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)