Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8225445

Browse filesBrowse files
committed
[DependencyInjection] Deprecate ContainerInterface aliases
1 parent 421c7f8 commit 8225445
Copy full SHA for 8225445
Expand file treeCollapse file tree

23 files changed

+118
-30
lines changed

‎UPGRADE-5.1.md

Copy file name to clipboardExpand all lines: UPGRADE-5.1.md
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ Console
66

77
* `Command::setHidden()` is final since Symfony 5.1
88

9+
DependencyInjection
10+
-------------------
11+
12+
* Deprecated the `Psr\Container\ContainerInterface` and `Symfony\Component\DependencyInjection\ContainerInterface` aliases of the `service_container` service,
13+
configure them explicitly instead.
14+
915
Dotenv
1016
------
1117

‎UPGRADE-6.0.md

Copy file name to clipboardExpand all lines: UPGRADE-6.0.md
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ Console
66

77
* `Command::setHidden()` has a default value (`true`) for `$hidden` parameter
88

9+
DependencyInjection
10+
-------------------
11+
12+
* Removed the `Psr\Container\ContainerInterface` and `Symfony\Component\DependencyInjection\ContainerInterface` aliases of the `service_container` service,
13+
configure them explicitly instead.
14+
915
Dotenv
1016
------
1117

‎src/Symfony/Component/DependencyInjection/CHANGELOG.md

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ CHANGELOG
77
* added support to autowire public typed properties in php 7.4
88
* added support for defining method calls, a configurator, and property setters in `InlineServiceConfigurator`
99
* added possibility to define abstract service arguments
10+
* deprecated the `Psr\Container\ContainerInterface` and `Symfony\Component\DependencyInjection\ContainerInterface` aliases of the `service_container` service,
11+
configure them explicitly instead
1012

1113
5.0.0
1214
-----

‎src/Symfony/Component/DependencyInjection/ContainerBuilder.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/ContainerBuilder.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ public function __construct(ParameterBagInterface $parameterBag = null)
147147

148148
$this->trackResources = interface_exists('Symfony\Component\Config\Resource\ResourceInterface');
149149
$this->setDefinition('service_container', (new Definition(ContainerInterface::class))->setSynthetic(true)->setPublic(true));
150-
$this->setAlias(PsrContainerInterface::class, new Alias('service_container', false));
151-
$this->setAlias(ContainerInterface::class, new Alias('service_container', false));
150+
$this->setAlias(PsrContainerInterface::class, new Alias('service_container', false))->setDeprecated(true, $deprecationTemplate = 'The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.');
151+
$this->setAlias(ContainerInterface::class, new Alias('service_container', false))->setDeprecated(true, $deprecationTemplate);
152152
}
153153

154154
/**

‎src/Symfony/Component/DependencyInjection/Tests/Dumper/XmlDumperTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Tests/Dumper/XmlDumperTest.php
+30-10Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,12 @@ public function testDumpAnonymousServices()
8888
</service>
8989
</argument>
9090
</service>
91-
<service id="Psr\Container\ContainerInterface" alias="service_container" public="false"/>
92-
<service id="Symfony\Component\DependencyInjection\ContainerInterface" alias="service_container" public="false"/>
91+
<service id="Psr\Container\ContainerInterface" alias="service_container" public="false">
92+
<deprecated>The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.</deprecated>
93+
</service>
94+
<service id="Symfony\Component\DependencyInjection\ContainerInterface" alias="service_container" public="false">
95+
<deprecated>The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.</deprecated>
96+
</service>
9397
</services>
9498
</container>
9599
', $dumper->dump());
@@ -107,8 +111,12 @@ public function testDumpEntities()
107111
<tag name=\"foo&quot;bar\bar\" foo=\"foo&quot;barřž€\"/>
108112
<argument>foo&lt;&gt;&amp;bar</argument>
109113
</service>
110-
<service id=\"Psr\Container\ContainerInterface\" alias=\"service_container\" public=\"false\"/>
111-
<service id=\"Symfony\Component\DependencyInjection\ContainerInterface\" alias=\"service_container\" public=\"false\"/>
114+
<service id=\"Psr\Container\ContainerInterface\" alias=\"service_container\" public=\"false\">
115+
<deprecated>The \"%alias_id%\" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.</deprecated>
116+
</service>
117+
<service id=\"Symfony\Component\DependencyInjection\ContainerInterface\" alias=\"service_container\" public=\"false\">
118+
<deprecated>The \"%alias_id%\" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.</deprecated>
119+
</service>
112120
</services>
113121
</container>
114122
", $dumper->dump());
@@ -133,8 +141,12 @@ public function provideDecoratedServicesData()
133141
<services>
134142
<service id=\"service_container\" class=\"Symfony\Component\DependencyInjection\ContainerInterface\" public=\"true\" synthetic=\"true\"/>
135143
<service id=\"foo\" class=\"FooClass\Foo\" public=\"true\" decorates=\"bar\" decoration-inner-name=\"bar.woozy\"/>
136-
<service id=\"Psr\Container\ContainerInterface\" alias=\"service_container\" public=\"false\"/>
137-
<service id=\"Symfony\Component\DependencyInjection\ContainerInterface\" alias=\"service_container\" public=\"false\"/>
144+
<service id=\"Psr\Container\ContainerInterface\" alias=\"service_container\" public=\"false\">
145+
<deprecated>The \"%alias_id%\" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.</deprecated>
146+
</service>
147+
<service id=\"Symfony\Component\DependencyInjection\ContainerInterface\" alias=\"service_container\" public=\"false\">
148+
<deprecated>The \"%alias_id%\" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.</deprecated>
149+
</service>
138150
</services>
139151
</container>
140152
", include $fixturesPath.'/containers/container15.php'],
@@ -143,8 +155,12 @@ public function provideDecoratedServicesData()
143155
<services>
144156
<service id=\"service_container\" class=\"Symfony\Component\DependencyInjection\ContainerInterface\" public=\"true\" synthetic=\"true\"/>
145157
<service id=\"foo\" class=\"FooClass\Foo\" public=\"true\" decorates=\"bar\"/>
146-
<service id=\"Psr\Container\ContainerInterface\" alias=\"service_container\" public=\"false\"/>
147-
<service id=\"Symfony\Component\DependencyInjection\ContainerInterface\" alias=\"service_container\" public=\"false\"/>
158+
<service id=\"Psr\Container\ContainerInterface\" alias=\"service_container\" public=\"false\">
159+
<deprecated>The \"%alias_id%\" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.</deprecated>
160+
</service>
161+
<service id=\"Symfony\Component\DependencyInjection\ContainerInterface\" alias=\"service_container\" public=\"false\">
162+
<deprecated>The \"%alias_id%\" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.</deprecated>
163+
</service>
148164
</services>
149165
</container>
150166
", include $fixturesPath.'/containers/container16.php'],
@@ -153,8 +169,12 @@ public function provideDecoratedServicesData()
153169
<services>
154170
<service id=\"service_container\" class=\"Symfony\Component\DependencyInjection\ContainerInterface\" public=\"true\" synthetic=\"true\"/>
155171
<service id=\"decorator\" decorates=\"decorated\" decoration-on-invalid=\"null\" decoration-inner-name=\"decorated.inner\" decoration-priority=\"1\"/>
156-
<service id=\"Psr\Container\ContainerInterface\" alias=\"service_container\" public=\"false\"/>
157-
<service id=\"Symfony\Component\DependencyInjection\ContainerInterface\" alias=\"service_container\" public=\"false\"/>
172+
<service id=\"Psr\Container\ContainerInterface\" alias=\"service_container\" public=\"false\">
173+
<deprecated>The \"%alias_id%\" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.</deprecated>
174+
</service>
175+
<service id=\"Symfony\Component\DependencyInjection\ContainerInterface\" alias=\"service_container\" public=\"false\">
176+
<deprecated>The \"%alias_id%\" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.</deprecated>
177+
</service>
158178
</services>
159179
</container>
160180
", include $fixturesPath.'/containers/container34.php'],

‎src/Symfony/Component/DependencyInjection/Tests/Fixtures/xml/services1.xml

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Tests/Fixtures/xml/services1.xml
+6-2Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
<container xmlns="http://symfony.com/schema/dic/services" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/dic/services https://symfony.com/schema/dic/services/services-1.0.xsd">
33
<services>
44
<service class="Symfony\Component\DependencyInjection\ContainerInterface" id="service_container" public="true" synthetic="true"/>
5-
<service alias="service_container" id="Psr\Container\ContainerInterface" public="false"/>
6-
<service alias="service_container" id="Symfony\Component\DependencyInjection\ContainerInterface" public="false"/>
5+
<service alias="service_container" id="Psr\Container\ContainerInterface" public="false">
6+
<deprecated>The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.</deprecated>
7+
</service>
8+
<service alias="service_container" id="Symfony\Component\DependencyInjection\ContainerInterface" public="false">
9+
<deprecated>The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.</deprecated>
10+
</service>
711
</services>
812
</container>

‎src/Symfony/Component/DependencyInjection/Tests/Fixtures/xml/services21.xml

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Tests/Fixtures/xml/services21.xml
+6-2Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@
1818
</service>
1919
</configurator>
2020
</service>
21-
<service id="Psr\Container\ContainerInterface" alias="service_container" public="false"/>
22-
<service id="Symfony\Component\DependencyInjection\ContainerInterface" alias="service_container" public="false"/>
21+
<service id="Psr\Container\ContainerInterface" alias="service_container" public="false">
22+
<deprecated>The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.</deprecated>
23+
</service>
24+
<service id="Symfony\Component\DependencyInjection\ContainerInterface" alias="service_container" public="false">
25+
<deprecated>The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.</deprecated>
26+
</service>
2327
</services>
2428
</container>

‎src/Symfony/Component/DependencyInjection/Tests/Fixtures/xml/services24.xml

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Tests/Fixtures/xml/services24.xml
+6-2Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
<services>
44
<service id="service_container" class="Symfony\Component\DependencyInjection\ContainerInterface" public="true" synthetic="true"/>
55
<service id="foo" class="Foo" public="true" autowire="true"/>
6-
<service id="Psr\Container\ContainerInterface" alias="service_container" public="false"/>
7-
<service id="Symfony\Component\DependencyInjection\ContainerInterface" alias="service_container" public="false"/>
6+
<service id="Psr\Container\ContainerInterface" alias="service_container" public="false">
7+
<deprecated>The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.</deprecated>
8+
</service>
9+
<service id="Symfony\Component\DependencyInjection\ContainerInterface" alias="service_container" public="false">
10+
<deprecated>The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.</deprecated>
11+
</service>
812
</services>
913
</container>

‎src/Symfony/Component/DependencyInjection/Tests/Fixtures/xml/services8.xml

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Tests/Fixtures/xml/services8.xml
+6-2Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@
3434
</parameters>
3535
<services>
3636
<service id="service_container" class="Symfony\Component\DependencyInjection\ContainerInterface" public="true" synthetic="true"/>
37-
<service id="Psr\Container\ContainerInterface" alias="service_container" public="false"/>
38-
<service id="Symfony\Component\DependencyInjection\ContainerInterface" alias="service_container" public="false"/>
37+
<service id="Psr\Container\ContainerInterface" alias="service_container" public="false">
38+
<deprecated>The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.</deprecated>
39+
</service>
40+
<service id="Symfony\Component\DependencyInjection\ContainerInterface" alias="service_container" public="false">
41+
<deprecated>The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.</deprecated>
42+
</service>
3943
</services>
4044
</container>

‎src/Symfony/Component/DependencyInjection/Tests/Fixtures/xml/services9.xml

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Tests/Fixtures/xml/services9.xml
+6-2Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,12 @@
148148
<argument type="service" id="errored_definition"/>
149149
</service>
150150
<service id="errored_definition" class="stdClass"/>
151-
<service id="Psr\Container\ContainerInterface" alias="service_container" public="false"/>
152-
<service id="Symfony\Component\DependencyInjection\ContainerInterface" alias="service_container" public="false"/>
151+
<service id="Psr\Container\ContainerInterface" alias="service_container" public="false">
152+
<deprecated>The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.</deprecated>
153+
</service>
154+
<service id="Symfony\Component\DependencyInjection\ContainerInterface" alias="service_container" public="false">
155+
<deprecated>The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.</deprecated>
156+
</service>
153157
<service id="alias_for_foo" alias="foo" public="true"/>
154158
<service id="alias_for_alias" alias="foo" public="true"/>
155159
</services>

‎src/Symfony/Component/DependencyInjection/Tests/Fixtures/xml/services_abstract.xml

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Tests/Fixtures/xml/services_abstract.xml
+6-2Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
<services>
44
<service id="service_container" class="Symfony\Component\DependencyInjection\ContainerInterface" public="true" synthetic="true"/>
55
<service id="foo" class="Foo" public="true" abstract="true"/>
6-
<service id="Psr\Container\ContainerInterface" alias="service_container" public="false"/>
7-
<service id="Symfony\Component\DependencyInjection\ContainerInterface" alias="service_container" public="false"/>
6+
<service id="Psr\Container\ContainerInterface" alias="service_container" public="false">
7+
<deprecated>The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.</deprecated>
8+
</service>
9+
<service id="Symfony\Component\DependencyInjection\ContainerInterface" alias="service_container" public="false">
10+
<deprecated>The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.</deprecated>
11+
</service>
812
</services>
913
</container>

‎src/Symfony/Component/DependencyInjection/Tests/Fixtures/xml/services_dump_load.xml

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Tests/Fixtures/xml/services_dump_load.xml
+6-2Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
<service id="foo" autoconfigure="true" abstract="true">
66
<argument type="service" id="bar" on-invalid="ignore_uninitialized"/>
77
</service>
8-
<service id="Psr\Container\ContainerInterface" alias="service_container" public="false"/>
9-
<service id="Symfony\Component\DependencyInjection\ContainerInterface" alias="service_container" public="false"/>
8+
<service id="Psr\Container\ContainerInterface" alias="service_container" public="false">
9+
<deprecated>The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.</deprecated>
10+
</service>
11+
<service id="Symfony\Component\DependencyInjection\ContainerInterface" alias="service_container" public="false">
12+
<deprecated>The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.</deprecated>
13+
</service>
1014
</services>
1115
</container>

‎src/Symfony/Component/DependencyInjection/Tests/Fixtures/xml/services_with_abstract_argument.xml

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Tests/Fixtures/xml/services_with_abstract_argument.xml
+6-2Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
<argument key="$baz" type="abstract">should be defined by Pass</argument>
77
<argument key="$bar">test</argument>
88
</service>
9-
<service id="Psr\Container\ContainerInterface" alias="service_container" public="false"/>
10-
<service id="Symfony\Component\DependencyInjection\ContainerInterface" alias="service_container" public="false"/>
9+
<service id="Psr\Container\ContainerInterface" alias="service_container" public="false">
10+
<deprecated>The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.</deprecated>
11+
</service>
12+
<service id="Symfony\Component\DependencyInjection\ContainerInterface" alias="service_container" public="false">
13+
<deprecated>The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.</deprecated>
14+
</service>
1115
</services>
1216
</container>

‎src/Symfony/Component/DependencyInjection/Tests/Fixtures/xml/services_with_tagged_arguments.xml

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Tests/Fixtures/xml/services_with_tagged_arguments.xml
+6-2Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@
1111
<service id="foo_tagged_locator" class="Bar" public="true">
1212
<argument type="tagged_locator" tag="foo_tag" index-by="barfoo" default-index-method="foobar" default-priority-method="getPriority"/>
1313
</service>
14-
<service id="Psr\Container\ContainerInterface" alias="service_container" public="false"/>
15-
<service id="Symfony\Component\DependencyInjection\ContainerInterface" alias="service_container" public="false"/>
14+
<service id="Psr\Container\ContainerInterface" alias="service_container" public="false">
15+
<deprecated>The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.</deprecated>
16+
</service>
17+
<service id="Symfony\Component\DependencyInjection\ContainerInterface" alias="service_container" public="false">
18+
<deprecated>The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.</deprecated>
19+
</service>
1620
</services>
1721
</container>

‎src/Symfony/Component/DependencyInjection/Tests/Fixtures/yaml/services1.yml

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Tests/Fixtures/yaml/services1.yml
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ services:
66
Psr\Container\ContainerInterface:
77
alias: service_container
88
public: false
9+
deprecated: The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.
910
Symfony\Component\DependencyInjection\ContainerInterface:
1011
alias: service_container
1112
public: false
13+
deprecated: The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.

‎src/Symfony/Component/DependencyInjection/Tests/Fixtures/yaml/services24.yml

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Tests/Fixtures/yaml/services24.yml
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ services:
1111
Psr\Container\ContainerInterface:
1212
alias: service_container
1313
public: false
14+
deprecated: The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.
1415
Symfony\Component\DependencyInjection\ContainerInterface:
1516
alias: service_container
1617
public: false
18+
deprecated: The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.

‎src/Symfony/Component/DependencyInjection/Tests/Fixtures/yaml/services34.yml

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Tests/Fixtures/yaml/services34.yml
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ services:
1212
Psr\Container\ContainerInterface:
1313
alias: service_container
1414
public: false
15+
deprecated: The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.
1516
Symfony\Component\DependencyInjection\ContainerInterface:
1617
alias: service_container
1718
public: false
19+
deprecated: The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.

‎src/Symfony/Component/DependencyInjection/Tests/Fixtures/yaml/services8.yml

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Tests/Fixtures/yaml/services8.yml
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ services:
2626
Psr\Container\ContainerInterface:
2727
alias: service_container
2828
public: false
29+
deprecated: The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.
2930
Symfony\Component\DependencyInjection\ContainerInterface:
3031
alias: service_container
3132
public: false
33+
deprecated: The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.

‎src/Symfony/Component/DependencyInjection/Tests/Fixtures/yaml/services9.yml

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Tests/Fixtures/yaml/services9.yml
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,11 @@ services:
162162
Psr\Container\ContainerInterface:
163163
alias: service_container
164164
public: false
165+
deprecated: The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.
165166
Symfony\Component\DependencyInjection\ContainerInterface:
166167
alias: service_container
167168
public: false
169+
deprecated: The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.
168170
alias_for_foo:
169171
alias: 'foo'
170172
public: true

‎src/Symfony/Component/DependencyInjection/Tests/Fixtures/yaml/services_dump_load.yml

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Tests/Fixtures/yaml/services_dump_load.yml
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ services:
1111
Psr\Container\ContainerInterface:
1212
alias: service_container
1313
public: false
14+
deprecated: The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.
1415
Symfony\Component\DependencyInjection\ContainerInterface:
1516
alias: service_container
1617
public: false
18+
deprecated: The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.

‎src/Symfony/Component/DependencyInjection/Tests/Fixtures/yaml/services_inline.yml

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Tests/Fixtures/yaml/services_inline.yml
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ services:
1111
Psr\Container\ContainerInterface:
1212
alias: service_container
1313
public: false
14+
deprecated: The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.
1415
Symfony\Component\DependencyInjection\ContainerInterface:
1516
alias: service_container
1617
public: false
18+
deprecated: The "%alias_id%" autowiring alias is deprecated. Define it explicitly in your app if you want to keep using it.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.