Actions
Task #95359
closedAdapt documentation to showcase conditional service dependencies via ContainerBuilder::hasDefinition()
Status:
Closed
Priority:
Should have
Assignee:
Category:
Documentation
Target version:
Start date:
2021-09-25
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Sprint Focus:
Description
The current recommendation to use ExtensionManagementUtility::isLoaded was never officially supported from the technical point of view:
https://docs.typo3.org/c/typo3/cms-dashboard/master/en-us/Configuration/WidgetRegistration.html#services-php-file
Therefore proper stateless container-builder checks via `hasDefinition()` should be encouraged instead.
Also see https://review.typo3.org/c/Packages/TYPO3.CMS/+/71214 for an explanation for alternatives.
Actions