nextcloud/lib/private/AppFramework/Http
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
..
Dispatcher.php feat(app framework)!: Inject services into controller methods 2023-01-18 14:00:38 +01:00
Output.php Update php licenses 2021-06-04 22:02:41 +02:00
Request.php Merge pull request #34172 from audriga/add-scim-json-support 2022-12-20 08:58:33 +01:00
RequestId.php Extract request id handling to dedicated class so it can be injected manually 2022-02-23 11:01:58 +01:00