From 4d973c267681e148b3c6b79f0fa4e102edd84ed8 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Fri, 23 Feb 2018 09:15:10 +0100 Subject: [PATCH] add container.autowiring.strict_mode to 3.4 docs --- UPGRADE-3.4.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/UPGRADE-3.4.md b/UPGRADE-3.4.md index 7aa2069f46..00d6422f76 100644 --- a/UPGRADE-3.4.md +++ b/UPGRADE-3.4.md @@ -56,6 +56,15 @@ DependencyInjection autowire: true ``` + * Autowiring services based on the types they implement is deprecated and will not be supported anymore in Symfony 4.0 + where it will only match an alias or a service id that matches then given FQCN. You can opt in the behavior of Symfony + 4 by the enabling the `container.autowiring.strict_mode` parameter: + + ```yml + parameters: + container.autowiring.strict_mode: true + ``` + * Top-level anonymous services in XML are deprecated and will throw an exception in Symfony 4.0. * Case insensitivity of parameter names is deprecated and will be removed in 4.0.