[TASK] Streamline hooks and middlewares related to PSR-15
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Configuration / RequestMiddlewares.php
1 <?php
2 /**
3 * An array consisting of implementations of middlewares for a middleware stack to be registered
4 *
5 * 'stackname' => [
6 * 'middleware-identifier' => [
7 * 'target' => classname or callable
8 * 'before/after' => array of dependencies
9 * ]
10 * ]
11 */
12 return [
13 'backend' => [
14 /** internal: do not use or reference this middleware in your own code */
15 'typo3/cms-core/normalized-params-attribute' => [
16 'target' => \TYPO3\CMS\Core\Middleware\NormalizedParamsAttribute::class,
17 ],
18 'typo3/cms-backend/locked-backend' => [
19 'target' => \TYPO3\CMS\Backend\Middleware\LockedBackendGuard::class,
20 'after' => [
21 'typo3/cms-core/normalized-params-attribute'
22 ],
23 ],
24 'typo3/cms-backend/https-redirector' => [
25 'target' => \TYPO3\CMS\Backend\Middleware\ForcedHttpsBackendRedirector::class,
26 'after' => [
27 'typo3/cms-core/normalized-params-attribute',
28 'typo3/cms-backend/locked-backend',
29 ]
30 ],
31 'typo3/cms-backend/backend-routing' => [
32 'target' => \TYPO3\CMS\Backend\Middleware\BackendRouteInitialization::class,
33 'after' => [
34 'typo3/cms-backend/https-redirector'
35 ]
36 ],
37 'typo3/cms-backend/authentication' => [
38 'target' => \TYPO3\CMS\Backend\Middleware\BackendUserAuthenticator::class,
39 'after' => [
40 'typo3/cms-backend/backend-routing'
41 ]
42 ],
43 'typo3/cms-backend/site-resolver' => [
44 'target' => \TYPO3\CMS\Backend\Middleware\SiteResolver::class,
45 'after' => [
46 'typo3/cms-backend/backend-routing'
47 ]
48 ],
49 /** internal: do not use or reference this middleware in your own code */
50 'typo3/cms-backend/legacy-document-template' => [
51 'target' => \TYPO3\CMS\Backend\Middleware\LegacyBackendTemplateInitialization::class,
52 'after' => [
53 'typo3/cms-backend/authentication'
54 ]
55 ],
56 /** internal: do not use or reference this middleware in your own code */
57 'typo3/cms-backend/output-compression' => [
58 'target' => \TYPO3\CMS\Backend\Middleware\OutputCompression::class,
59 'after' => [
60 'typo3/cms-backend/authentication'
61 ]
62 ],
63 /** internal: do not use or reference this middleware in your own code */
64 'typo3/cms-backend/response-headers' => [
65 'target' => \TYPO3\CMS\Backend\Middleware\AdditionalResponseHeaders::class,
66 'after' => [
67 'typo3/cms-backend/output-compression'
68 ]
69 ],
70 ]
71 ];