8000 add container.autowiring.strict_mode to 3.4 docs · symfony/symfony@4d973c2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4d973c2

Browse files
committed
add container.autowiring.strict_mode to 3.4 docs
1 parent 952786a commit 4d973c2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

UPGRADE-3.4.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,15 @@ DependencyInjection
5656
autowire: true
5757
```
5858
59+
* Autowiring services based on the types they implement is deprecated and will not be supported anymore in Symfony 4.0
60+
where it will only match an alias or a service id that matches then given FQCN. You can opt in the behavior of Symfony
61+
4 by the enabling the `container.autowiring.strict_mode` parameter:
62+
63+
```yml
64+
parameters:
65+
container.autowiring.strict_mode: true
66+
```
67+
5968
* Top-level anonymous services in XML are deprecated and will throw an exception in Symfony 4.0.
6069

6170
* Case insensitivity of parameter names is deprecated and will be removed in 4.0.

0 commit comments

Comments
 (0)
0