8000 minor #26251 Document the container.autowiring.strict_mode option (B-… · symfony/symfony@4183e93 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4183e93

Browse files
committed
minor #26251 Document the container.autowiring.strict_mode option (B-Galati)
This PR was merged into the 3.4 branch. Discussion ---------- Document the container.autowiring.strict_mode option | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | symfony/symfony-docs#8561 | License | MIT | Doc PR | no Hello, Let me know for any misunderstanding from my part or rewording Commits ------- 1138377 Document the container.autowiring.strict_mode option
2 parents 743129f + 1138377 commit 4183e93

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

UPGRADE-4.0.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,18 @@ DependencyInjection
163163
autowire: true
164164
```
165165
166-
* Autowiring services based on the types they implement is not supported anymore. Rename (or alias) your services to their FQCN id to make them autowirable.
166+
* Autowiring services based on the types they implement is not supported anymore.
167+
It will only look for an alias or a service id that matches a given FQCN.
168+
Rename (or alias) your services to their FQCN id to make them autowirable.
169+
In 3.4, you can activate this behavior instead of having deprecation messages
170+
by setting the following parameter:
171+
172+
```yml
173+
parameters:
174+
container.autowiring.strict_mode: true
175+
```
176+
177+
From 4.0, you can remove it as it's the default behavior and the parameter is not handled anymore.
167178
168179
* `_defaults` and `_instanceof` are now reserved service names in Yaml configurations. Please rename any services with that names.
169180

0 commit comments

Comments
 (0)
0