- Issue created by @longwave
- First commit to issue fork.
- 🇮🇳India sidharth_soman Bangalore
Added a commit adding the trait and removing the create method.
To wire services to a form, developers must implement a custom create()
method that pulls services from the container and calls the constructor.
Using PHP 8 attributes, we can tag constructor parameters directly and allow the base class to discover and inject the required services, dropping the create()
method entirely.
In 📌 Allow controller service wiring via constructor parameter attributes Fixed we added an AutowireTrait and applied it to ControllerBase for controllers. We can apply the same trait to FormBase for all forms to use.
Add AutowireTrait to FormBase.
Active
11.0 🔥
Last updated
Added a commit adding the trait and removing the create method.