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> |
1 vuosi sitten | |
---|---|---|
.. | ||
Bootstrap | Add event logging to app loading | 2 vuotta sitten |
Controller | Adds a "Request password" button to the public share authentication page for shares | 2 vuotta sitten |
Db | Remove long depreated AppFramework/Db/Mapper | 1 vuosi sitten |
DependencyInjection | Adjust and add unit tests | 2 vuotta sitten |
Http | feat(app framework)!: Inject services into controller methods | 1 vuosi sitten |
Middleware | use bruteforce protection on all methods wrapped by PublicShareMiddleware | 1 vuosi sitten |
OCS | Format control structures, classes, methods and function | 4 vuotta sitten |
Routing | Remove at matcher uses in tests/lib | 2 vuotta sitten |
Utility | Format code to a single space around binary operators | 3 vuotta sitten |
AppTest.php | Add a built-in profiler inside Nextcloud | 2 vuotta sitten |