Skip to content
Snippets Groups Projects
Commit dd059ddb authored by Oliver Bartsch's avatar Oliver Bartsch Committed by Benni Mack
Browse files

[TASK] Add Module definiton to .phpstorm.meta.php

Since #96797, the Module object is added to the
PSR-7 Request, in case a TYPO3 backend module
is requested.

To further support autocompletion, the Module
definition is now added to the .phpstorm.meta.php file.

Resolves: #96905
Related: #96797
Releases: main
Change-Id: Id323f27dbe59a386cf38ba73ee75bd07abb11532
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/73521


Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
parent ab368ed2
Branches
Tags
No related merge requests found
......@@ -98,7 +98,8 @@ namespace PHPSTORM_META {
'normalizedParams',
'site',
'language',
'routing'
'routing',
'module'
);
override(\Psr\Http\Message\ServerRequestInterface::getAttribute(), map([
......@@ -108,6 +109,7 @@ namespace PHPSTORM_META {
'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',
'module' => \TYPO3\CMS\Backend\Module\ModuleInterface::class,
]));
expectedArguments(
......@@ -118,7 +120,8 @@ namespace PHPSTORM_META {
'normalizedParams',
'site',
'language',
'routing'
'routing',
'module'
);
override(\TYPO3\CMS\Core\Http\ServerRequest::getAttribute(), map([
......@@ -128,6 +131,7 @@ namespace PHPSTORM_META {
'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',
'module' => \TYPO3\CMS\Backend\Module\ModuleInterface::class,
]));
override(\TYPO3\CMS\Core\Routing\SiteMatcher::matchRequest(), type(
......
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