[TASK] Start compatibility for TYPO3 11
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user