nextcloud/tests/lib/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
..
ContentSecurityPolicyTest.php Allow to set a strict-dynamic CSP through the API 2022-03-09 15:10:27 +01:00
DataResponseTest.php send request id in response header 2022-02-01 14:24:01 +01:00
DispatcherTest.php feat(app framework)!: Inject services into controller methods 2023-01-18 14:00:38 +01:00
DownloadResponseTest.php Escape filename in Content-Disposition 2021-06-02 19:22:17 +02:00
EmptyContentSecurityPolicyTest.php Set frame-ancestors to none if none are filled 2020-11-18 10:13:36 +01:00
EmptyFeaturePolicyTest.php Use a blank line after the opening tag 2020-04-09 11:50:14 +02:00
FeaturePolicyTest.php Use a blank line after the opening tag 2020-04-09 11:50:14 +02:00
FileDisplayResponseTest.php Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to \PHPUnit\Framework\MockObject\MockObject 2020-08-12 13:55:19 +02:00
HttpTest.php Move the notmodified check to middleware where it belongs 2020-05-13 08:11:24 +02:00
JSONResponseTest.php Use JSON_THROW_ON_ERROR instead of custom error handling 2022-05-30 19:17:49 +02:00
OutputTest.php add tests for http/output 2016-11-16 15:30:37 +01:00
PublicTemplateResponseTest.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
RedirectResponseTest.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
RequestIdTest.php Adjust and add unit tests 2022-02-23 11:01:58 +01:00
RequestStream.php Fix some more problems with tests under PHP 8.2 2022-11-15 16:02:24 +01:00
RequestTest.php Merge branch 'master' into add-scim-json-support 2022-12-19 09:07:38 +01:00
ResponseTest.php send request id in response header 2022-02-01 14:24:01 +01:00
StreamResponseTest.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
TemplateResponseTest.php Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00