Task #95359
closedAdapt documentation to showcase conditional service dependencies via ContainerBuilder::hasDefinition()
100%
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.
Updated by Benjamin Franzke about 3 years ago
- Related to Task #95358: Avoid pushing PackageManager to ExtensionManagementUtility only to circumvent a documentation bug added
Updated by Benjamin Franzke about 3 years ago
- Related to Bug #95327: Push PackageManager to ExtensionManagementUtility in bootstrap added
Updated by Benjamin Franzke about 3 years ago
- Subject changed from Adapt documentation to showcase conditional service dependencies via ContainerBuilder::hasLoaded() to Adapt documentation to showcase conditional service dependencies via ContainerBuilder::hasDefinition()
Updated by Gerrit Code Review about 3 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71272
Updated by Gerrit Code Review about 3 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71272
Updated by Gerrit Code Review about 3 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71272
Updated by Benjamin Franzke about 3 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset ddc530738eb6e8786c7d4aaa1950f29a4665a587.