8000 Book: Update Service Container Documentation · symfony/symfony-docs@30eb4fa · GitHub
[go: up one dir, main page]

Skip to content

Commit 30eb4fa

Browse files
Zander Baldwinzanbaldwin
Zander Baldwin
authored andcommitted
Book: Update Service Container Documentation
Missing <services> XML block wrapper for the Tags section example. Fixes #5882.
1 parent 1e9c1c9 commit 30eb4fa

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

book/service_container.rst

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -318,10 +318,10 @@ The service container is built using a single configuration resource
318318
be imported from inside this file in one way or another. This gives you absolute
319319
flexibility over the services in your application.
320320

321-
External service configuration can be imported in two different ways. The first
322-
method, commonly used to import container configuration from the bundles you've
323-
created - is via the ``imports`` directive. The second method, although slightly more
324-
complex offers more flexibility and is commonly used to import third-party bundle
321+
External service configuration can be imported in two different ways. The first
322+
method, commonly used to import container configuration from the bundles you've
323+
created - is via the ``imports`` directive. The second method, although slightly more
324+
complex offers more flexibility and is commonly used to import third-party bundle
325325
configuration. Read on to learn more about both methods.
326326

327327
.. index::
@@ -943,13 +943,15 @@ to be used for a specific purpose. Take the following example:
943943
xsi:schemaLocation="http://symfony.com/schema/dic/services
944944
http://symfony.com/schema/dic/services/services-1.0.xsd">
945945
946-
<service
947-
id="foo.twig.extension"
948-
class="Acme\HelloBundle\Extension\FooExtension"
949-
public="false">
946+
<services>
947+
<service
948+
id="foo.twig.extension"
949+
class="Acme\HelloBundle\Extension\FooExtension"
950+
public="false">
950951
951-
<tag name="twig.extension" />
952-
</service>
952+
<tag name="twig.extension" />
953+
</service>
954+
</services>
953955
</container>
954956
955957
.. code-block:: php

0 commit comments

Comments
 (0)
0