nextcloud/lib/private/AppFramework
Christoph Wurst 20fcfb5739
feat(app framework)!: Inject services into controller methods
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>
2023-01-18 14:00:38 +01:00
..
Bootstrap Move registration to IBootstrap 2022-08-31 16:20:06 +02:00
DependencyInjection feat(app framework)!: Inject services into controller methods 2023-01-18 14:00:38 +01:00
Http feat(app framework)!: Inject services into controller methods 2023-01-18 14:00:38 +01:00
Middleware use bruteforce protection on all methods wrapped by PublicShareMiddleware 2022-12-07 13:24:50 +01:00
OCS Update php licenses 2021-06-04 22:02:41 +02:00
Routing Make the route name error more helpful 2021-10-22 10:41:27 +02:00
Services Update php licenses 2021-06-04 22:02:41 +02:00
Utility Improve dependency injection error message 2022-12-01 12:46:01 +01:00
App.php Remove OCP\App and OCP\BackgroundJob 2022-08-01 09:46:40 +02:00
Http.php Update php licenses 2021-06-04 22:02:41 +02:00
Logger.php Update php licenses 2021-06-04 22:02:41 +02:00
ScopedPsrLogger.php Update php licenses 2021-06-04 22:02:41 +02:00