Actions
Bug #90722
closedHandle constructor arguments in extension scanner correctly
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Install Tool
Target version:
-
Start date:
2020-03-10
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Handling constructor arguments in extension scanner did not work since constructors are not directly called like a method would be called. Constructors are invoked instead using the new
statement. Besides that GeneratorClassResolver
only supported string class names (e.g. 'Example\\MyClass') when being invoked via GeneralUtility::makeInstance
.
Scanner configurations related to __construct
invocation in terms of creating a new class instance are now handled in their own ConstructorArgumentMatcher
. Besides that, GeneratorClassResolver
supports GeneralUtility::makeInstance(Example\MyClass::class, 123)
as well.
Files
Actions