nextcloud-server/core
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
..
ajax
BackgroundJobs
Command Fix API breakage by using a new method instead 2023-01-12 17:18:59 +01:00
Controller feat(app framework)!: Inject services into controller methods 2023-01-18 14:00:38 +01:00
css Fix failed revert for #35071 2023-01-17 14:21:11 +01:00
Data
Db
doc
Events
Exception
fonts
img fix(ui): Fix and optimize more SVGs 2023-01-05 11:01:14 +01:00
js Focus trap contacts menu with NcHeaderMenu port 2023-01-13 23:19:28 +00:00
l10n Fix(l10n): 🔠 Update translations from Transifex 2023-01-18 02:25:23 +00:00
Listener Only check unsupported browsers on user rendering 2022-10-28 12:23:02 +02:00
Middleware
Migrations PublickKeyTokenProvider: Fix password update routine with password hash 2023-01-04 08:30:53 +01:00
Notification
Service
skeleton
src Focus trap contacts menu with NcHeaderMenu port 2023-01-13 23:19:28 +00:00
templates Revert "Add alt to the logo, adapt css for logo" 2023-01-17 14:19:23 +01:00
vendor Remove jstz usage from server 2023-01-04 17:40:40 +00:00
.l10nignore
Application.php Only check unsupported browsers on user rendering 2022-10-28 12:23:02 +02:00
register_command.php move share owner repair to occ command 2022-11-08 17:13:33 +01:00
routes.php
shipped.json
strings.php