Christoph Wurst
20fcfb5739
Usually Nextcloud DI goes through constructor injection. This has the implication that each instance of a class builds the full DI tree. That is the injected services, their services, etc. Occasionally there is a service that is only needed for one controller method. Then the DI tree is build regardless if used or not. If services are injected into the method, we only build the DI tree if that method gets executed. This is also how Laravel allows injection. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> |
il y a 1 an | |
---|---|---|
.. | ||
Command | Update core to PHP 7.4 standard | il y a 2 ans |
Controller | feat(app framework)!: Inject services into controller methods | il y a 1 an |
Data | simplified tests | il y a 3 ans |
Middleware | Fix tests | il y a 2 ans |
Service | Update core to PHP 7.4 standard | il y a 2 ans |