rector.php gets the typeDeclarations set: return types (void, array, unions) where the code proves them, typed closures and arrow functions, typed properties from constructors and assignments in the DTOs. Skipped: rules that infer scalar or array parameter types from call sites or docblocks, and the removal of casts the docblocks call redundant. Values from the database, form input and the import feeds arrive as strings and would throw instead of being converted (e.g. the (int) cast of the newsletter list ids stays). Checked locally: cache warmup, frontend crawl (~1,900 URLs), the backchannel APIs and the newsletter form validation behave as before. Co-Authored-By: Claude Opus 5.5 <[email protected]>
38 lines
1.7 KiB
PHP
38 lines
1.7 KiB
PHP
<?php
|
|
use TYPO3\CMS\Core\Log\LogLevel;
|
|
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
|
|
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
|
use TYPO3\CMS\Core\MetaTag\MetaTagManagerRegistry;
|
|
use EP\EpTheme\MetaTag\OpenGraphMetaTagManager;
|
|
|
|
defined('TYPO3') || die();
|
|
|
|
$boot = function (): void {
|
|
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['ep'] = ['Ep\\EpTheme\\ViewHelpers'];
|
|
$GLOBALS['TYPO3_CONF_VARS']['LOG']['TYPO3']['CMS']['deprecations']['writerConfiguration'][LogLevel::NOTICE] = [];
|
|
|
|
$GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['default'] = 'EXT:ep_theme/Configuration/RTE/Default.yaml';
|
|
$GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['ep-reisen'] = 'EXT:ep_theme/Configuration/RTE/Default.yaml';
|
|
$GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['ep-minimal'] = 'EXT:ep_theme/Configuration/RTE/Minimal.yaml';
|
|
|
|
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['ep'] = ['EP\\EpTheme\\ViewHelpers'];
|
|
$GLOBALS['TYPO3_CONF_VARS']['MAIL']['layoutRootPaths'][700] = 'EXT:ep_theme/Resources/Private/Layouts/Email/';
|
|
$GLOBALS['TYPO3_CONF_VARS']['MAIL']['format'] = 'html';
|
|
|
|
// Backend and CLI (form editor, FlexForm of the form plugin, reference index) read module.tx_form,
|
|
// which TYPO3 13 only takes from global TypoScript, not from the site's template
|
|
ExtensionManagementUtility::addTypoScriptSetup(
|
|
'module.tx_form.settings.yamlConfigurations.1630994710 = EXT:ep_theme/Configuration/Yaml/FormSetup.yaml'
|
|
);
|
|
|
|
$metaTagManagerRegistry = GeneralUtility::makeInstance(MetaTagManagerRegistry::class);
|
|
$metaTagManagerRegistry->registerManager(
|
|
'ep_opengraph',
|
|
OpenGraphMetaTagManager::class
|
|
);
|
|
};
|
|
|
|
$boot();
|
|
unset($boot);
|
|
|