[!!!][TASK] Remove request type specific code in Bootstrap
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / 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 'frontend' => [
14 'typo3/cms-frontend/timetracker' => [
15 'target' => \TYPO3\CMS\Frontend\Middleware\TimeTrackerInitialization::class,
16 ],
17 'typo3/cms-core/normalized-params-attribute' => [
18 'target' => \TYPO3\CMS\Core\Middleware\NormalizedParamsAttribute::class,
19 'after' => [
20 'typo3/cms-frontend/timetracker',
21 ]
22 ],
23 'typo3/cms-frontend/preprocessing' => [
24 'target' => \TYPO3\CMS\Frontend\Middleware\PreprocessRequestHook::class,
25 'after' => [
26 'typo3/cms-core/normalized-params-attribute',
27 ]
28 ],
29 'typo3/cms-frontend/eid' => [
30 'target' => \TYPO3\CMS\Frontend\Middleware\EidHandler::class,
31 'after' => [
32 'typo3/cms-frontend/preprocessing'
33 ]
34 ],
35 'typo3/cms-frontend/maintenance-mode' => [
36 'target' => \TYPO3\CMS\Frontend\Middleware\MaintenanceMode::class,
37 'after' => [
38 'typo3/cms-core/normalized-params-attribute',
39 'typo3/cms-frontend/eid'
40 ]
41 ],
42 'typo3/cms-frontend/content-length-headers' => [
43 'target' => \TYPO3\CMS\Frontend\Middleware\ContentLengthResponseHeader::class,
44 'after' => [
45 'typo3/cms-frontend/maintenance-mode'
46 ]
47 ],
48 'typo3/cms-frontend/tsfe' => [
49 'target' => \TYPO3\CMS\Frontend\Middleware\TypoScriptFrontendInitialization::class,
50 'after' => [
51 'typo3/cms-core/normalized-params-attribute',
52 ]
53 ],
54 'typo3/cms-frontend/output-compression' => [
55 'target' => \TYPO3\CMS\Frontend\Middleware\OutputCompression::class,
56 'after' => [
57 'typo3/cms-frontend/tsfe',
58 ]
59 ],
60 'typo3/cms-frontend/authentication' => [
61 'target' => \TYPO3\CMS\Frontend\Middleware\FrontendUserAuthenticator::class,
62 'after' => [
63 'typo3/cms-frontend/tsfe',
64 ]
65 ],
66 'typo3/cms-frontend/backend-user-authentication' => [
67 'target' => \TYPO3\CMS\Frontend\Middleware\BackendUserAuthenticator::class,
68 'after' => [
69 'typo3/cms-frontend/tsfe',
70 ]
71 ],
72 ]
73 ];