Skip to content

Commit e55ddf6

Browse files
committed
fix YAML code block indentation
1 parent 65898f6 commit e55ddf6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

service_container/lazy_services.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)