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:
50
50
51
51
.. code-block :: yaml
52
52
53
+ # app/config/services.yml
53
54
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
57
58
58
59
.. code-block :: xml
59
60
61
+ <!-- app/config/services.xml -->
60
62
<?xml version =" 1.0" encoding =" UTF-8" ?>
61
63
<container xmlns =" http://symfony.com/schema/dic/services"
62
64
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
@@ -70,6 +72,7 @@ You can mark the service as ``lazy`` by manipulating its definition:
70
72
71
73
.. code-block :: php
72
74
75
+ // app/config/services.php
73
76
use AppBundle\Twig\AppExtension;
74
77
75
78
$container->register('app.twig_extension', AppExtension::class)
You can’t perform that action at this time.
0 commit comments