-
- Notifications
You must be signed in to change notification settings - Fork 5.3k
Closed
Labels
DependencyInjectionactionableClear and specific issues ready for anyone to take them.Clear and specific issues ready for anyone to take them.good first issueIdeal for your first contribution! (some Symfony experience may be required)Ideal for your first contribution! (some Symfony experience may be required)
Description
In case of:
services: service_name: class: Some\Class\Here arguments: [@request]ScopeWideningInjectionException probably will be throw, and as described in this exception message:
(...) In rare, special cases however that might not be necessary, then you can set the reference to strict=false to get rid of this error.
In case of xml or php it's simple, but when it comes to yaml it looks like:
services: service_name: class: Some\Class\Here arguments: [@request=]gusdecool and fulopattila122
Metadata
Metadata
Assignees
Labels
DependencyInjectionactionableClear and specific issues ready for anyone to take them.Clear and specific issues ready for anyone to take them.good first issueIdeal for your first contribution! (some Symfony experience may be required)Ideal for your first contribution! (some Symfony experience may be required)