mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-22 18:36:13 +01:00

[FEATURE] Add module definitions to the PhpStorm meta file (#388)

Copied from:
- https://review.typo3.org/c/Packages/TYPO3.CMS/+/73521
- https://review.typo3.org/c/Packages/TYPO3.CMS/+/73415

Fixes #382
This commit is contained in:
Oliver Klee 2022-02-17 18:20:14 +01:00 committed by GitHub
parent a13e2f4598
commit 05a7e61208
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -136,7 +136,9 @@ namespace PHPSTORM_META {
'normalizedParams', 'normalizedParams',
'site', 'site',
'language', 'language',
'routing' 'routing',
'module',
'moduleData'
); );
override(\Psr\Http\Message\ServerRequestInterface::getAttribute(), map([ override(\Psr\Http\Message\ServerRequestInterface::getAttribute(), map([
@ -146,6 +148,8 @@ namespace PHPSTORM_META {
'site' => \TYPO3\CMS\Core\Site\Entity\SiteInterface::class, 'site' => \TYPO3\CMS\Core\Site\Entity\SiteInterface::class,
'language' => \TYPO3\CMS\Core\Site\Entity\SiteLanguage::class, 'language' => \TYPO3\CMS\Core\Site\Entity\SiteLanguage::class,
'routing' => '\TYPO3\CMS\Core\Routing\SiteRouteResult|\TYPO3\CMS\Core\Routing\PageArguments', 'routing' => '\TYPO3\CMS\Core\Routing\SiteRouteResult|\TYPO3\CMS\Core\Routing\PageArguments',
'module' => \TYPO3\CMS\Backend\Module\ModuleInterface::class,
'moduleData' => \TYPO3\CMS\Backend\Module\ModuleData::class,
])); ]));
expectedArguments( expectedArguments(
@ -156,7 +160,9 @@ namespace PHPSTORM_META {
'normalizedParams', 'normalizedParams',
'site', 'site',
'language', 'language',
'routing' 'routing',
'module',
'moduleData'
); );
override(\TYPO3\CMS\Core\Http\ServerRequest::getAttribute(), map([ override(\TYPO3\CMS\Core\Http\ServerRequest::getAttribute(), map([
@ -166,6 +172,8 @@ namespace PHPSTORM_META {
'site' => \TYPO3\CMS\Core\Site\Entity\SiteInterface::class, 'site' => \TYPO3\CMS\Core\Site\Entity\SiteInterface::class,
'language' => \TYPO3\CMS\Core\Site\Entity\SiteLanguage::class, 'language' => \TYPO3\CMS\Core\Site\Entity\SiteLanguage::class,
'routing' => '\TYPO3\CMS\Core\Routing\SiteRouteResult|\TYPO3\CMS\Core\Routing\PageArguments', 'routing' => '\TYPO3\CMS\Core\Routing\SiteRouteResult|\TYPO3\CMS\Core\Routing\PageArguments',
'module' => \TYPO3\CMS\Backend\Module\ModuleInterface::class,
'moduleData' => \TYPO3\CMS\Backend\Module\ModuleData::class,
])); ]));
override(\TYPO3\CMS\Core\Routing\SiteMatcher::matchRequest(), type( override(\TYPO3\CMS\Core\Routing\SiteMatcher::matchRequest(), type(