mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-10 04:56:12 +01:00
[TASK] Update phpstorm meta file according to core (#376)
Resolves: #369 Co-authored-by: Łukasz Uznański <l.uznanski@macopedia.pl>
This commit is contained in:
parent
9a870876b3
commit
77da462e8b
1 changed files with 129 additions and 0 deletions
|
@ -49,4 +49,133 @@ namespace PHPSTORM_META {
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Contexts
|
||||||
|
// @see https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/9.4/Feature-85389-ContextAPIForConsistentDataHandling.html
|
||||||
|
expectedArguments(
|
||||||
|
\TYPO3\CMS\Core\Context\Context::getAspect(),
|
||||||
|
0,
|
||||||
|
'date',
|
||||||
|
'visibility',
|
||||||
|
'backend.user',
|
||||||
|
'frontend.user',
|
||||||
|
'workspace',
|
||||||
|
'language',
|
||||||
|
'typoscript'
|
||||||
|
);
|
||||||
|
|
||||||
|
override(\TYPO3\CMS\Core\Context\Context::getAspect(), map([
|
||||||
|
'date' => \TYPO3\CMS\Core\Context\DateTimeAspect::class,
|
||||||
|
'visibility' => \TYPO3\CMS\Core\Context\VisibilityAspect::class,
|
||||||
|
'backend.user' => \TYPO3\CMS\Core\Context\UserAspect::class,
|
||||||
|
'frontend.user' => \TYPO3\CMS\Core\Context\UserAspect::class,
|
||||||
|
'workspace' => \TYPO3\CMS\Core\Context\WorkspaceAspect::class,
|
||||||
|
'language' => \TYPO3\CMS\Core\Context\LanguageAspect::class,
|
||||||
|
'typoscript' => \TYPO3\CMS\Core\Context\TypoScriptAspect::class,
|
||||||
|
]));
|
||||||
|
|
||||||
|
expectedArguments(
|
||||||
|
\TYPO3\CMS\Core\Context\DateTimeAspect::get(),
|
||||||
|
0,
|
||||||
|
'timestamp',
|
||||||
|
'iso',
|
||||||
|
'timezone',
|
||||||
|
'full',
|
||||||
|
'accessTime'
|
||||||
|
);
|
||||||
|
|
||||||
|
expectedArguments(
|
||||||
|
\TYPO3\CMS\Core\Context\VisibilityAspect::get(),
|
||||||
|
0,
|
||||||
|
'includeHiddenPages',
|
||||||
|
'includeHiddenContent',
|
||||||
|
'includeDeletedRecords'
|
||||||
|
);
|
||||||
|
|
||||||
|
expectedArguments(
|
||||||
|
\TYPO3\CMS\Core\Context\UserAspect::get(),
|
||||||
|
0,
|
||||||
|
'id',
|
||||||
|
'username',
|
||||||
|
'isLoggedIn',
|
||||||
|
'isAdmin',
|
||||||
|
'groupIds',
|
||||||
|
'groupNames'
|
||||||
|
);
|
||||||
|
|
||||||
|
expectedArguments(
|
||||||
|
\TYPO3\CMS\Core\Context\WorkspaceAspect::get(),
|
||||||
|
0,
|
||||||
|
'id',
|
||||||
|
'isLive',
|
||||||
|
'isOffline'
|
||||||
|
);
|
||||||
|
|
||||||
|
expectedArguments(
|
||||||
|
\TYPO3\CMS\Core\Context\LanguageAspect::get(),
|
||||||
|
0,
|
||||||
|
'id',
|
||||||
|
'contentId',
|
||||||
|
'fallbackChain',
|
||||||
|
'overlayType',
|
||||||
|
'legacyLanguageMode',
|
||||||
|
'legacyOverlayType'
|
||||||
|
);
|
||||||
|
|
||||||
|
expectedArguments(
|
||||||
|
\TYPO3\CMS\Core\Context\TypoScriptAspect::get(),
|
||||||
|
0,
|
||||||
|
'forcedTemplateParsing'
|
||||||
|
);
|
||||||
|
|
||||||
|
expectedArguments(
|
||||||
|
\Psr\Http\Message\ServerRequestInterface::getAttribute(),
|
||||||
|
0,
|
||||||
|
'backend.user',
|
||||||
|
'frontend.user',
|
||||||
|
'normalizedParams',
|
||||||
|
'site',
|
||||||
|
'language',
|
||||||
|
'routing'
|
||||||
|
);
|
||||||
|
|
||||||
|
override(\Psr\Http\Message\ServerRequestInterface::getAttribute(), map([
|
||||||
|
'backend.user' => \TYPO3\CMS\Backend\FrontendBackendUserAuthentication::class,
|
||||||
|
'frontend.user' => \TYPO3\CMS\Frontend\Authentication\FrontendUserAuthentication::class,
|
||||||
|
'normalizedParams' => \TYPO3\CMS\Core\Http\NormalizedParams::class,
|
||||||
|
'site' => \TYPO3\CMS\Core\Site\Entity\SiteInterface::class,
|
||||||
|
'language' => \TYPO3\CMS\Core\Site\Entity\SiteLanguage::class,
|
||||||
|
'routing' => '\TYPO3\CMS\Core\Routing\SiteRouteResult|\TYPO3\CMS\Core\Routing\PageArguments',
|
||||||
|
]));
|
||||||
|
|
||||||
|
expectedArguments(
|
||||||
|
\TYPO3\CMS\Core\Http\ServerRequest::getAttribute(),
|
||||||
|
0,
|
||||||
|
'backend.user',
|
||||||
|
'frontend.user',
|
||||||
|
'normalizedParams',
|
||||||
|
'site',
|
||||||
|
'language',
|
||||||
|
'routing'
|
||||||
|
);
|
||||||
|
|
||||||
|
override(\TYPO3\CMS\Core\Http\ServerRequest::getAttribute(), map([
|
||||||
|
'backend.user' => \TYPO3\CMS\Backend\FrontendBackendUserAuthentication::class,
|
||||||
|
'frontend.user' => \TYPO3\CMS\Frontend\Authentication\FrontendUserAuthentication::class,
|
||||||
|
'normalizedParams' => \TYPO3\CMS\Core\Http\NormalizedParams::class,
|
||||||
|
'site' => \TYPO3\CMS\Core\Site\Entity\SiteInterface::class,
|
||||||
|
'language' => \TYPO3\CMS\Core\Site\Entity\SiteLanguage::class,
|
||||||
|
'routing' => '\TYPO3\CMS\Core\Routing\SiteRouteResult|\TYPO3\CMS\Core\Routing\PageArguments',
|
||||||
|
]));
|
||||||
|
|
||||||
|
override(\TYPO3\CMS\Core\Routing\SiteMatcher::matchRequest(), type(
|
||||||
|
\TYPO3\CMS\Core\Routing\SiteRouteResult::class,
|
||||||
|
\TYPO3\CMS\Core\Routing\RouteResultInterface::class,
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
override(\TYPO3\CMS\Core\Routing\PageRouter::matchRequest(), type(
|
||||||
|
\TYPO3\CMS\Core\Routing\PageArguments::class,
|
||||||
|
\TYPO3\CMS\Core\Routing\RouteResultInterface::class,
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue