-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Description
It would be nice to have Dependency Injection for the hook objects called in \Cobweb\Linkhandler\TypolinkHandler::generateLink
// Call registered hooks
if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['linkhandler']['generateLink'])) {
foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['linkhandler']['generateLink'] as $className) {
$linkParameterProcessor = GeneralUtility::makeInstance($className);
if ($linkParameterProcessor instanceof ProcessLinkParametersInterface) {
$linkParameterProcessor->process($this);
}
}
}
So maybe we could use the ObjectManager to get the hook objects?
I'd be glad to make a pull request.
Metadata
Metadata
Assignees
Labels
No labels