Commit 4593948e authored by Tim Wagner's avatar Tim Wagner

[BUGFIX] Use strings instead of class resolvers

parent ae72c00c
......@@ -63,13 +63,13 @@ call_user_func(
if (version_compare(\TYPO3\CMS\Core\Utility\VersionNumberUtility::getCurrentTypo3Version(), '10.3.0', '<')) {
if (!class_exists('LanguageVisibilityPageRepository')) {
/** @noinspection PhpIgnoredClassAliasDeclaration */
@class_alias(\TYPO3\CMS\Frontend\Page\PageRepository::class, 'LanguageVisibilityPageRepository');
@class_alias('\TYPO3\CMS\Frontend\Page\PageRepository', 'LanguageVisibilityPageRepository');
}
if (!class_exists('LanguageVisibilityPageRepositoryGetPageOverlayHookInterface')) {
/** @noinspection PhpIgnoredClassAliasDeclaration */
@class_alias(
\TYPO3\CMS\Frontend\Page\PageRepositoryGetPageOverlayHookInterface::class,
'\TYPO3\CMS\Frontend\Page\PageRepositoryGetPageOverlayHookInterface',
'LanguageVisibilityPageRepositoryGetPageOverlayHookInterface'
);
}
......@@ -77,7 +77,7 @@ call_user_func(
if (!class_exists('LanguageVisibilityPageRepositoryGetRecordOverlayHookInterface')) {
/** @noinspection PhpIgnoredClassAliasDeclaration */
@class_alias(
\TYPO3\CMS\Frontend\Page\PageRepositoryGetRecordOverlayHookInterface::class,
'\TYPO3\CMS\Frontend\Page\PageRepositoryGetRecordOverlayHookInterface',
'LanguageVisibilityPageRepositoryGetRecordOverlayHookInterface'
);
}
......@@ -88,7 +88,7 @@ call_user_func(
if (!class_exists('LanguageVisibilityPageRepository')) {
/** @noinspection PhpIgnoredClassAliasDeclaration */
@class_alias(
\TYPO3\CMS\Core\Domain\Repository\PageRepository::class,
'\TYPO3\CMS\Core\Domain\Repository\PageRepository',
'LanguageVisibilityPageRepository'
);
}
......@@ -96,7 +96,7 @@ call_user_func(
if (!class_exists('LanguageVisibilityPageRepositoryGetPageOverlayHookInterface')) {
/** @noinspection PhpIgnoredClassAliasDeclaration */
@class_alias(
\TYPO3\CMS\Core\Domain\Repository\PageRepositoryGetPageOverlayHookInterface::class,
'\TYPO3\CMS\Core\Domain\Repository\PageRepositoryGetPageOverlayHookInterface',
'LanguageVisibilityPageRepositoryGetPageOverlayHookInterface'
);
}
......@@ -104,7 +104,7 @@ call_user_func(
if (!class_exists('LanguageVisibilityPageRepositoryGetRecordOverlayHookInterface')) {
/** @noinspection PhpIgnoredClassAliasDeclaration */
@class_alias(
\TYPO3\CMS\Core\Domain\Repository\PageRepositoryGetRecordOverlayHookInterface::class,
'\TYPO3\CMS\Core\Domain\Repository\PageRepositoryGetRecordOverlayHookInterface',
'LanguageVisibilityPageRepositoryGetRecordOverlayHookInterface'
);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment