[TASK] FE: Move Content-Length header to middleware
[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-frontend/preprocessing' => [
18 'target' => \TYPO3\CMS\Frontend\Middleware\PreprocessRequestHook::class,
19 'after' => [
20 'typo3/cms-frontend/timetracker'
21 ]
22 ],
23 'typo3/cms-frontend/eid' => [
24 'target' => \TYPO3\CMS\Frontend\Middleware\EidHandler::class,
25 'after' => [
26 'typo3/cms-frontend/preprocessing'
27 ]
28 ],
29 'typo3/cms-frontend/content-length-headers' => [
30 'target' => \TYPO3\CMS\Frontend\Middleware\ContentLengthResponseHeader::class,
31 'after' => [
32 'typo3/cms-frontend/eid'
33 ]
34 ],
35 ]
36 ];