Skip to content

Commit 3ccce23

Browse files
committed
[#10824] Fixed issues found by DOCtor
1 parent ff8ea64 commit 3ccce23

File tree

3 files changed

+6
-18
lines changed

3 files changed

+6
-18
lines changed

service_container/3.3-di-changes.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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
104104
are 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

112108
1) Services are Loaded Automatically

service_container/alias_private.rst

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff 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-
236228
In some cases, you may want to prevent a service being used as a dependency of
237229
other services. This can be achieved by creating an anonymous service. These
238230
services 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();

service_container/parent_services.rst

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

0 commit comments

Comments
 (0)