File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -74,14 +74,18 @@ Now you must let the Service Container know about your newly created Twig Extens
74
74
services :
75
75
app.twig_extension :
76
76
class : AppBundle\Twig\AcmeExtension
77
+ public : false
77
78
tags :
78
79
- { name: twig.extension }
79
80
80
81
.. code-block :: xml
81
82
82
83
<!-- app/config/services.xml -->
83
84
<services >
84
- <service id =" app.twig_extension" class =" AppBundle\Twig\AcmeExtension" >
85
+ <service id =" app.twig_extension"
86
+ class =" AppBundle\Twig\AcmeExtension"
87
+ public =" false" >
88
+
85
89
<tag name =" twig.extension" />
86
90
</service >
87
91
</services >
@@ -93,6 +97,7 @@ Now you must let the Service Container know about your newly created Twig Extens
93
97
94
98
$container
95
99
->register('app.twig_extension', '\AppBundle\Twig\AcmeExtension')
100
+ ->setPublic(false)
96
101
->addTag('twig.extension');
97
102
98
103
.. note ::
You can’t perform that action at this time.
0 commit comments