You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: UPGRADE-7.0.md
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,18 @@ Symfony 6.4 and Symfony 7.0 will be released simultaneously at the end of Novemb
5
5
release process, both versions will have the same features, but Symfony 7.0 won't include any deprecated features.
6
6
To upgrade, make sure to resolve all deprecation notices.
7
7
8
+
DependencyInjection
9
+
-------------------
10
+
11
+
* Remove `#[MapDecorated]`, use `#[AutowireDecorated]` instead
12
+
* Remove `ProxyHelper`, use `Symfony\Component\VarExporter\ProxyHelper` instead
13
+
* Remove `ReferenceSetArgumentTrait`
14
+
* Remove support of `@required` annotation, use the `Symfony\Contracts\Service\Attribute\Required` attribute instead
15
+
* Passing `null` to `ContainerAwareTrait::setContainer()` must be done explicitly
16
+
* Remove `PhpDumper` options `inline_factories_parameter` and `inline_class_loader_parameter`, use options `inline_factories` and `inline_class_loader` instead
17
+
* Parameter names of `ParameterBag` cannot be numerics
18
+
* Remove `ContainerAwareInterface` and `ContainerAwareTrait`, use dependency injection instead
19
+
8
20
DoctrineBridge
9
21
--------------
10
22
@@ -15,6 +27,7 @@ DoctrineBridge
15
27
* Remove `DoctrineDataCollector::addLogger()`, use a `DebugDataHolder` instead
16
28
*`ContainerAwareEventManager::getListeners()` must be called with an event name
17
29
* DoctrineBridge now requires `doctrine/event-manager:^2`
30
+
* Remove `ContainerAwareLoader`, use dependency injection in your fixtures instead
@@ -112,14 +111,7 @@ public function get(string $name): Command
112
111
{
113
112
$this->registerCommands();
114
113
115
-
$command = parent::get($name);
116
-
117
-
if ($commandinstanceof ContainerAwareInterface) {
118
-
trigger_deprecation('symfony/dependency-injection', '6.4', 'Relying on "%s" to get the container in "%s" is deprecated, register the command as a service and use dependency injection instead.', ContainerAwareInterface::class, get_debug_type($command));
if ($controllerinstanceof ContainerAwareInterface) {
29
-
trigger_deprecation('symfony/dependency-injection', '6.4', 'Relying on "%s" to get the container in "%s" is deprecated, register the controller as a service and use dependency injection instead.', ContainerAwareInterface::class, get_debug_type($controller));
30
-
$controller->setContainer($this->container);
31
-
}
32
27
if ($controllerinstanceof AbstractController) {
33
28
if (null === $previousContainer = $controller->setContainer($this->container)) {
34
29
thrownew \LogicException(sprintf('"%s" has no container set, did you forget to define it as a service subscriber?', $class));
0 commit comments