nextcloud/tests/lib/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 Add event logging to app loading 2022-02-28 11:24:41 +01:00
Controller Adds a "Request password" button to the public share authentication page for shares 2022-04-11 21:58:24 +02:00
Db Remove long depreated AppFramework/Db/Mapper 2022-10-10 08:18:32 +02:00
DependencyInjection Adjust and add unit tests 2022-02-23 11:01:58 +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 Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
Routing Remove at matcher uses in tests/lib 2022-06-16 17:43:17 +02:00
Utility Format code to a single space around binary operators 2020-10-05 20:25:24 +02:00
AppTest.php Add a built-in profiler inside Nextcloud 2022-04-04 10:28:26 +02:00