RequestMiddlewares.php 6.25 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php
/**
 * An array consisting of implementations of middlewares for a middleware stack to be registered
 *
 *  'stackname' => [
 *      'middleware-identifier' => [
 *         'target' => classname or callable
 *         'before/after' => array of dependencies
 *      ]
 *   ]
 */
return [
    'frontend' => [
14
        /** internal: do not use or reference this middleware in your own code */
15
16
        'typo3/cms-frontend/timetracker' => [
            'target' => \TYPO3\CMS\Frontend\Middleware\TimeTrackerInitialization::class,
17
        ],
18
        /** internal: do not use or reference this middleware in your own code */
19
20
21
22
23
24
        'typo3/cms-core/normalized-params-attribute' => [
            'target' => \TYPO3\CMS\Core\Middleware\NormalizedParamsAttribute::class,
            'after' => [
                'typo3/cms-frontend/timetracker',
            ]
        ],
25
        /** internal: do not use or reference this middleware in your own code, as this will be possibly be removed */
26
27
28
        'typo3/cms-frontend/eid' => [
            'target' => \TYPO3\CMS\Frontend\Middleware\EidHandler::class,
            'after' => [
29
                'typo3/cms-core/normalized-params-attribute',
30
31
            ]
        ],
32
33
34
35
        'typo3/cms-frontend/maintenance-mode' => [
            'target' => \TYPO3\CMS\Frontend\Middleware\MaintenanceMode::class,
            'after' => [
                'typo3/cms-core/normalized-params-attribute',
36
                'typo3/cms-frontend/site',
37
38
39
                'typo3/cms-frontend/eid'
            ]
        ],
40
        /** internal: do not use or reference this middleware in your own code, as this will be possibly be removed */
41
42
43
        'typo3/cms-frontend/content-length-headers' => [
            'target' => \TYPO3\CMS\Frontend\Middleware\ContentLengthResponseHeader::class,
            'after' => [
44
                'typo3/cms-frontend/maintenance-mode'
45
46
            ]
        ],
47
48
49
50
51
52
53
54
55
56
        'typo3/cms-frontend/preview-simulator' => [
            'target' => \TYPO3\CMS\Frontend\Middleware\PreviewSimulator::class,
            'after' => [
                'typo3/cms-frontend/backend-user-authentication',
                'typo3/cms-frontend/authentication',
            ],
            'before' => [
                'typo3/cms-frontend/tsfe'
            ]
        ],
57
58
59
60
61
62
        'typo3/cms-frontend/site' => [
            'target' => \TYPO3\CMS\Frontend\Middleware\SiteResolver::class,
            'after' => [
                'typo3/cms-core/normalized-params-attribute',
            ],
            'before' => [
63
64
                'typo3/cms-frontend/authentication',
                'typo3/cms-frontend/backend-user-authentication',
65
66
67
                'typo3/cms-frontend/page-resolver'
            ]
        ],
68
69
70
        'typo3/cms-frontend/base-redirect-resolver' => [
            'target' => \TYPO3\CMS\Frontend\Middleware\SiteBaseRedirectResolver::class,
            'after' => [
71
                'typo3/cms-frontend/site',
72
73
74
75
76
            ],
            'before' => [
                'typo3/cms-frontend/static-route-resolver'
            ]
        ],
77
78
79
        'typo3/cms-frontend/static-route-resolver' => [
            'target' => \TYPO3\CMS\Frontend\Middleware\StaticRouteResolver::class,
            'after' => [
80
                'typo3/cms-frontend/base-redirect-resolver',
81
82
83
84
85
            ],
            'before' => [
                'typo3/cms-frontend/page-resolver'
            ]
        ],
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
        'typo3/cms-frontend/backend-user-authentication' => [
            'target' => \TYPO3\CMS\Frontend\Middleware\BackendUserAuthenticator::class,
            'before' => [
                'typo3/cms-frontend/authentication',
            ]
        ],
        'typo3/cms-frontend/authentication' => [
            'target' => \TYPO3\CMS\Frontend\Middleware\FrontendUserAuthenticator::class,
            'before' => [
                'typo3/cms-frontend/tsfe',
            ],
            'after' => [
                'typo3/cms-frontend/maintenance-mode',
                'typo3/cms-frontend/site'
            ]
        ],
102
103
104
        'typo3/cms-frontend/page-resolver' => [
            'target' => \TYPO3\CMS\Frontend\Middleware\PageResolver::class,
            'after' => [
105
                'typo3/cms-frontend/site',
106
107
                'typo3/cms-frontend/authentication',
                'typo3/cms-frontend/backend-user-authentication',
108
109
110
            ],
            'before' => [
                'typo3/cms-frontend/tsfe',
111
112
            ]
        ],
113
114
        'typo3/cms-frontend/page-argument-validator' => [
            'target' => \TYPO3\CMS\Frontend\Middleware\PageArgumentValidator::class,
115
116
117
118
            'after' => [
                'typo3/cms-frontend/page-resolver',
            ],
            'before' => [
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
                'typo3/cms-frontend/tsfe',
            ]
        ],
        /** internal: do not use or reference this middleware in your own code, as this will be possibly be removed */
        'typo3/cms-frontend/tsfe' => [
            'target' => \TYPO3\CMS\Frontend\Middleware\TypoScriptFrontendInitialization::class,
            'after' => [
                'typo3/cms-frontend/eid',
                'typo3/cms-frontend/page-argument-validator',
            ]
        ],
        /** internal: do not use or reference this middleware in your own code, as this will be possibly be removed */
        'typo3/cms-frontend/output-compression' => [
            'target' => \TYPO3\CMS\Frontend\Middleware\OutputCompression::class,
            'after' => [
                'typo3/cms-frontend/tsfe',
135
136
            ]
        ],
137
        /** internal: do not use or reference this middleware in your own code, as this will be possibly be removed */
138
139
140
        'typo3/cms-frontend/prepare-tsfe-rendering' => [
            'target' => \TYPO3\CMS\Frontend\Middleware\PrepareTypoScriptFrontendRendering::class,
            'after' => [
141
                'typo3/cms-frontend/tsfe',
142
143
            ]
        ],
144
        /** internal: do not use or reference this middleware in your own code, as this will be possibly be removed */
145
146
147
148
149
150
151
152
153
        'typo3/cms-frontend/shortcut-and-mountpoint-redirect' => [
            'target' => \TYPO3\CMS\Frontend\Middleware\ShortcutAndMountPointRedirect::class,
            'after' => [
                'typo3/cms-frontend/prepare-tsfe-rendering',
            ],
            'before' => [
                'typo3/cms-frontend/content-length-headers',
            ],
        ],
154
155
    ]
];