Project

General

Profile

Actions

Task #95359

closed

Adapt documentation to showcase conditional service dependencies via ContainerBuilder::hasDefinition()

Added by Benjamin Franzke about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Should have
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.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Task #95358: Avoid pushing PackageManager to ExtensionManagementUtility only to circumvent a documentation bugClosedBenjamin Franzke2021-09-25

Actions
Related to TYPO3 Core - Bug #95327: Push PackageManager to ExtensionManagementUtility in bootstrapClosed2021-09-23

Actions
Actions

Also available in: Atom PDF