File tree Expand file tree Collapse file tree 3 files changed +6
-18
lines changed Expand file tree Collapse file tree 3 files changed +6
-18
lines changed Original file line number Diff line number Diff line change @@ -103,10 +103,6 @@ what the file looks like in Symfony 4):
103103 This small bit of configuration contains a paradigm shift of how services
104104are configured in Symfony.
105105
106- .. versionadded :: 3.4
107-
108- PHP Fluent DI was introduced in Symfony 3.4.
109-
110106.. _`service-33-changes-automatic-registration` :
111107
1121081) Services are Loaded Automatically
Original file line number Diff line number Diff line change @@ -225,14 +225,6 @@ Anonymous Services
225225
226226 Anonymous services are only supported by the XML, YAML, and PHP Fluent configuration formats.
227227
228- .. versionadded :: 3.3
229-
230- The feature to configure anonymous services in YAML was introduced in Symfony 3.3.
231-
232- .. versionadded :: 4.1
233-
234- The feaature to configure anonymous services in PHP Fluent was introduced in Symfony 3.4.
235-
236228In some cases, you may want to prevent a service being used as a dependency of
237229other services. This can be achieved by creating an anonymous service. These
238230services are like regular services but they don't define an ID and they are
@@ -274,8 +266,8 @@ The following example shows how to inject an anonymous service into another serv
274266 // config/services.php
275267 namespace Symfony\Component\DependencyInjection\Loader\Configurator;
276268
277- use App\Foo;
278269 use App\AnonymousBar;
270+ use App\Foo;
279271
280272 return function(ContainerConfigurator $configurator) {
281273 $container = $configurator->services();
@@ -323,8 +315,8 @@ Using an anonymous service as a factory looks like this:
323315 // config/services.php
324316 namespace Symfony\Component\DependencyInjection\Loader\Configurator;
325317
326- use App\Foo;
327318 use App\AnonymousBar;
319+ use App\Foo;
328320
329321 return function(ContainerConfigurator $configurator) {
330322 $container = $configurator->services();
Original file line number Diff line number Diff line change @@ -119,9 +119,9 @@ duplicated service definitions:
119119 // config/services.php
120120 namespace Symfony\Component\DependencyInjection\Loader\Configurator;
121121
122- use App\Repository\DoctrineUserRepository;
123- use App\Repository\DoctrinePostRepository;
124122 use App\Repository\BaseDoctrineRepository;
123+ use App\Repository\DoctrinePostRepository;
124+ use App\Repository\DoctrineUserRepository;
125125
126126 return function(ContainerConfigurator $configurator) {
127127 $configurator->services()
@@ -225,9 +225,9 @@ the child class:
225225 // config/services.php
226226 namespace Symfony\Component\DependencyInjection\Loader\Configurator;
227227
228- use App\Repository\DoctrineUserRepository;
229- use App\Repository\DoctrinePostRepository;
230228 use App\Repository\BaseDoctrineRepository;
229+ use App\Repository\DoctrinePostRepository;
230+ use App\Repository\DoctrineUserRepository;
231231 // ...
232232
233233 return function(ContainerConfigurator $configurator) {
You can’t perform that action at this time.
0 commit comments