-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Closed
Description
| Q | A |
|---|---|
| Bug report? | no |
| Feature request? | yes |
| BC Break report? | no |
| RFC? | no |
| Symfony version | 3.x.x |
I would be nice if you could auto wire container params using annotation like in this example:
/**
* @ContainerParam(name="kernelEnvironment", param="kernel.environment")
*/
public function __construct($kernelEnvironment)
{
}This would play nice with bundles like DunglasActionBundle and with auto wire in general.
I could make a compler pass which makes the conversion, but the default AutowirePass from symfony throws when auto wire is enabled and an argument could not be resolved.