- Issue created by @donquixote
The Autowire attribute also can be passed container parameters, so those might be something to be accounted for by the trait as well.
Technically also expressions and env as well, but I don't think the Drupal container supports those atm.
- 🇦🇺Australia mstrelan
Technically also expressions and env as well, but I don't think the Drupal container supports those atm.
This has been explored a bit in ✨ Add a trait for autowiring properties in tests Needs work , I believe it requires the addition of
symfony/expression-language
. Yeah, and env support has hit a snag in 📌 Support setting service parameters via environment variables Needs work .
- 🇩🇪Germany donquixote
I think for now we want to make sure it works as advertised for for a limited set of supported scenarios.
Later we can incrementally add support for advanced autowire features.