rector.php gets the codeQuality set: declare(strict_types=1) in the 85 files where Rector finds no call relying on scalar type juggling (mostly TCA and configuration, models, the content feed API and the import command), "or die" as "|| die", instanceof instead of null checks for object types, early returns and self:: in final classes. Hotel::setRooms() goes instead of getting the property Rector wanted to declare: nothing calls it, and there is no rooms column any more. Checked locally: cache warmup, the ep:* commands load, frontend crawl (~1,900 URLs) and the backchannel APIs render the same as before. Co-Authored-By: Claude Opus 5.5 <[email protected]>
39 lines
1.1 KiB
PHP
39 lines
1.1 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use EP\EpTheme\Middleware\CdnImageMiddleware;
|
|
use EP\EpTheme\Middleware\ReferrerMiddleware;
|
|
use EP\EpTheme\Middleware\HtmxRedirectMiddleware;
|
|
|
|
return [
|
|
'frontend' => [
|
|
'ep/cdn-images' => [
|
|
'target' => CdnImageMiddleware::class,
|
|
'after' => [
|
|
'typo3/cms-frontend/page-resolver',
|
|
],
|
|
],
|
|
'ep/referrer' => [
|
|
'target' => ReferrerMiddleware::class,
|
|
'after' => [
|
|
'typo3/cms-frontend/authentication',
|
|
],
|
|
'before' => [
|
|
'typo3/cms-frontend/page-resolver',
|
|
],
|
|
],
|
|
// Outermost of the frontend stack after the site is known, so it also sees redirects
|
|
// that core middlewares or exceptions (PropagateResponseException) produce
|
|
'ep/htmx-redirect' => [
|
|
'target' => HtmxRedirectMiddleware::class,
|
|
'after' => [
|
|
'typo3/cms-frontend/site',
|
|
],
|
|
'before' => [
|
|
'typo3/cms-frontend/authentication',
|
|
],
|
|
],
|
|
],
|
|
];
|