File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -50,13 +50,15 @@ You can mark the service as ``lazy`` by manipulating its definition:
5050
5151 .. code-block :: yaml
5252
53+ # app/config/services.yml
5354 services :
54- app.twig_extension :
55- class : AppBundle\Twig\AppExtension
56- lazy : true
55+ app.twig_extension :
56+ class : AppBundle\Twig\AppExtension
57+ lazy : true
5758
5859 .. code-block :: xml
5960
61+ <!-- app/config/services.xml -->
6062 <?xml version =" 1.0" encoding =" UTF-8" ?>
6163 <container xmlns =" http://symfony.com/schema/dic/services"
6264 xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
@@ -70,6 +72,7 @@ You can mark the service as ``lazy`` by manipulating its definition:
7072
7173 .. code-block :: php
7274
75+ // app/config/services.php
7376 use AppBundle\Twig\AppExtension;
7477
7578 $container->register('app.twig_extension', AppExtension::class)
You can’t perform that action at this time.
0 commit comments