[TASK] Start compatibility for TYPO3 11
This commit is contained in:
parent
94296d4a4d
commit
fb54d608a6
@ -182,7 +182,7 @@ class ActionController extends BaseController
|
||||
*/
|
||||
public function injectPropertyMapper(
|
||||
PropertyMapper $propertyMapper
|
||||
) {
|
||||
): void {
|
||||
$this->propertyMapper = $propertyMapper;
|
||||
}
|
||||
|
||||
|
@ -102,11 +102,17 @@ trait DependencyInjectionTrait
|
||||
$frameworkConfiguration['persistence']['storagePid']
|
||||
)
|
||||
);
|
||||
$this->reflectionService = GeneralUtility::makeInstance(
|
||||
ReflectionService::class, GeneralUtility::makeInstance(
|
||||
CacheManager::class
|
||||
)
|
||||
);
|
||||
if (version_compare(TYPO3_branch, '10.0', '>=')) {
|
||||
$this->reflectionService = GeneralUtility::makeInstance(
|
||||
ReflectionService::class
|
||||
);
|
||||
} else {
|
||||
$this->reflectionService = GeneralUtility::makeInstance(
|
||||
ReflectionService::class, GeneralUtility::makeInstance(
|
||||
CacheManager::class
|
||||
)
|
||||
);
|
||||
}
|
||||
$classInfo = $this->reflectionService->getClassSchema(
|
||||
get_class($this)
|
||||
);
|
||||
|
@ -66,7 +66,7 @@ class TranslationViewHelper extends AbstractViewHelper
|
||||
$translation = LocalizationUtility::translate(
|
||||
$arguments['key'],
|
||||
$arguments['extensionKey'],
|
||||
$arguments['arguments']
|
||||
(array) $arguments['arguments']
|
||||
);
|
||||
if ($translation) {
|
||||
return $translation;
|
||||
|
@ -1,6 +1,3 @@
|
||||
#options.pageTree.showPageIdWithTitle = 1
|
||||
options.pageTree.showNavTitle = 1
|
||||
|
||||
options {
|
||||
folderTree {
|
||||
uploadFieldsInLinkBrowser = 0
|
||||
|
@ -9,7 +9,7 @@
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"typo3/cms-core": "8.7.0 - 10.99.99",
|
||||
"typo3/cms-core": "8.7.0 - 11.99.99",
|
||||
"sarhan/php-flatten": "^4.0"
|
||||
},
|
||||
"autoload": {
|
||||
|
@ -39,14 +39,25 @@ call_user_func(
|
||||
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms']['db_new_content_el']['wizardItemsHook'][] =
|
||||
\Cjel\TemplatesAide\Hooks\WizardItems::class;
|
||||
|
||||
if(\TYPO3\CMS\Core\Utility\GeneralUtility::getApplicationContext()->isDevelopment()) {
|
||||
$GLOBALS['TBE_STYLES']['skins']['backend']['stylesheetDirectories']['dev'] =
|
||||
'EXT:templates_aide/Resources/Public/Css/backend/dev';
|
||||
}
|
||||
|
||||
if(\TYPO3\CMS\Core\Utility\GeneralUtility::getApplicationContext()->__toString() === 'Production/Stage') {
|
||||
$GLOBALS['TBE_STYLES']['skins']['backend']['stylesheetDirectories']['dev'] =
|
||||
'EXT:templates_aide/Resources/Public/Css/backend/production-stage';
|
||||
if (version_compare(TYPO3_branch, '10.0', '>=')) {
|
||||
if (\TYPO3\CMS\Core\Core\Environment::getContext()->isDevelopment()) {
|
||||
$GLOBALS['TBE_STYLES']['skins']['backend']['stylesheetDirectories']['dev'] =
|
||||
'EXT:templates_aide/Resources/Public/Css/backend/dev';
|
||||
}
|
||||
if(\TYPO3\CMS\Core\Core\Environment::getContext()->__toString() === 'Production/Stage') {
|
||||
$GLOBALS['TBE_STYLES']['skins']['backend']['stylesheetDirectories']['dev'] =
|
||||
'EXT:templates_aide/Resources/Public/Css/backend/production-stage';
|
||||
}
|
||||
} else {
|
||||
if (\TYPO3\CMS\Core\Utility\GeneralUtility::getApplicationContext()->isDevelopment()) {
|
||||
$GLOBALS['TBE_STYLES']['skins']['backend']['stylesheetDirectories']['dev'] =
|
||||
'EXT:templates_aide/Resources/Public/Css/backend/dev';
|
||||
}
|
||||
if(\TYPO3\CMS\Core\Utility\GeneralUtility::getApplicationContext()->__toString() === 'Production/Stage') {
|
||||
$GLOBALS['TBE_STYLES']['skins']['backend']['stylesheetDirectories']['dev'] =
|
||||
'EXT:templates_aide/Resources/Public/Css/backend/production-stage';
|
||||
}
|
||||
}
|
||||
|
||||
$GLOBALS['TBE_STYLES']['skins']['backend']['stylesheetDirectories']['templates_aide_default'] =
|
||||
|
Loading…
x
Reference in New Issue
Block a user