Project

General

Profile

Actions

Task #95359

closed

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

Added by Benjamin Franzke over 2 years ago. Updated over 2 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 #1

Updated by Benjamin Franzke over 2 years ago

  • Related to Task #95358: Avoid pushing PackageManager to ExtensionManagementUtility only to circumvent a documentation bug added
Actions #2

Updated by Benjamin Franzke over 2 years ago

  • Related to Bug #95327: Push PackageManager to ExtensionManagementUtility in bootstrap added
Actions #3

Updated by Benjamin Franzke over 2 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()
Actions #4

Updated by Gerrit Code Review over 2 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

Actions #5

Updated by Gerrit Code Review over 2 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

Actions #6

Updated by Gerrit Code Review over 2 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

Actions #7

Updated by Benjamin Franzke over 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #8

Updated by Benni Mack over 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF