nextcloud/tests/Core/Controller
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
..
AppPasswordControllerTest.php Fix more tests in the Core subdir 2021-03-24 08:48:28 +01:00
AutoCompleteControllerTest.php Update core to PHP 7.4 standard 2022-05-20 22:18:06 +02:00
AvatarControllerTest.php fix Controller tests 2022-07-22 22:15:41 +02:00
ChangePasswordControllerTest.php Do not dispatch postSetPassword when setPassword fails 2022-05-05 17:21:23 +02:00
ClientFlowLoginControllerTest.php Extend tests 2022-05-16 10:33:30 +02:00
ClientFlowLoginV2ControllerTest.php Extend tests 2022-05-16 10:33:30 +02:00
ContactsMenuControllerTest.php Modernize contacts menu 2022-05-12 18:31:59 +02:00
CSRFTokenControllerTest.php Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to \PHPUnit\Framework\MockObject\MockObject 2020-08-12 13:55:19 +02:00
CssControllerTest.php Fix tests and avoid PHP errors in them 2021-11-23 09:29:01 +01:00
GuestAvatarControllerTest.php Update core to PHP 7.4 standard 2022-05-20 22:18:06 +02:00
JsControllerTest.php Fix tests and avoid PHP errors in them 2021-11-23 09:29:01 +01:00
LoginControllerTest.php feat(app framework)!: Inject services into controller methods 2023-01-18 14:00:38 +01:00
LostControllerTest.php Fix LostController test 2022-10-18 14:49:02 +00:00
NavigationControllerTest.php Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to \PHPUnit\Framework\MockObject\MockObject 2020-08-12 13:55:19 +02:00
OCSControllerTest.php Bump nextcloud/coding-standard from 0.3.0 to 0.5.0 2021-02-18 13:31:24 +01:00
PreviewControllerTest.php Check share attributes on preview endpoints 2022-10-25 11:35:31 +02:00
TwoFactorChallengeControllerTest.php Update core to PHP 7.4 standard 2022-05-20 22:18:06 +02:00
UserControllerTest.php Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to \PHPUnit\Framework\MockObject\MockObject 2020-08-12 13:55:19 +02:00
WellKnownControllerTest.php Add well known handlers API 2020-12-16 13:13:05 +01:00
WipeControllerTest.php Use a blank line after the opening tag 2020-04-09 11:50:14 +02:00