Skip to content

Commit 811df86

Browse files
committed
minor #13582 Remove old AppBundle code from XML service definition example (7ochem)
This PR was merged into the 4.4 branch. Discussion ---------- Remove old AppBundle code from XML service definition example In the XML example of the default service definition, there still was the AppBundle prototype definition from the 3.4 docs, besides the new App definition. I made the XML example resemble the YAML example. Commits ------- 2bf0473 Remove old AppBundle code from XML service definition example
2 parents 29c03b6 + 2bf0473 commit 811df86

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

service_container.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,12 @@ each time you ask for it.
176176
<!-- Default configuration for services in *this* file -->
177177
<defaults autowire="true" autoconfigure="true"/>
178178
179+
<!-- makes classes in src/ available to be used as services -->
180+
<!-- this creates a service per class whose id is the fully-qualified class name -->
179181
<prototype namespace="App\" resource="../src/*" exclude="../src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php}"/>
180182
181-
<!-- makes classes in src/AppBundle available to be used as services -->
182-
<prototype namespace="AppBundle\"
183-
resource="../../src/AppBundle/*"
184-
exclude="../../src/AppBundle/{Entity,Repository}"/>
183+
<!-- ... -->
184+
185185
</services>
186186
</container>
187187

0 commit comments

Comments
 (0)