georgringer / doc

Project documentation for editors & integratiors, visible in the TYPO3 backend
Other
21 stars 9 forks source link

[BUGFIX] Avoid global state usage in Services.php #11

Closed peterkraume closed 2 years ago

peterkraume commented 2 years ago

Avoid ExtensionManagementUtility::isLoaded and rather derivce conditional container state from current container state.

Advantage is that container builds become stateless again.

This fix helps to prevent this error message in TYPo3 v11: Call to a member function isPackageActive() on null The error occurs even in frontend views.