dfab932723313c528f81583377e371f656f2cbf1
[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-frontend/eid',
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 'typo3/cms-frontend/site' => [
73 'target' => \TYPO3\CMS\Frontend\Middleware\SiteResolver::class,
74 'after' => [
75 'typo3/cms-core/normalized-params-attribute',
76 'typo3/cms-frontend/tsfe',
77 'typo3/cms-frontend/authentication',
78 'typo3/cms-frontend/backend-user-authentication',
79 ],
80 'before' => [
81 'typo3/cms-frontend/page-resolver'
82 ]
83 ],
84 'typo3/cms-frontend/page-resolver' => [
85 'target' => \TYPO3\CMS\Frontend\Middleware\PageResolver::class,
86 'after' => [
87 'typo3/cms-frontend/tsfe',
88 'typo3/cms-frontend/authentication',
89 'typo3/cms-frontend/backend-user-authentication',
90 'typo3/cms-frontend/site',
91 ]
92 ],
93 'typo3/cms-frontend/prepare-tsfe-rendering' => [
94 'target' => \TYPO3\CMS\Frontend\Middleware\PrepareTypoScriptFrontendRendering::class,
95 'after' => [
96 'typo3/cms-frontend/page-resolver',
97 ]
98 ],
99 'typo3/cms-frontend/shortcut-and-mountpoint-redirect' => [
100 'target' => \TYPO3\CMS\Frontend\Middleware\ShortcutAndMountPointRedirect::class,
101 'after' => [
102 'typo3/cms-frontend/prepare-tsfe-rendering',
103 ],
104 'before' => [
105 'typo3/cms-frontend/content-length-headers',
106 ],
107 ],
108 ]
109 ];