Project

General

Profile

Actions

Feature #86735

closed

Make \TYPO3\CMS\Core\Configuration\ExtensionConfiguration function get static

Added by Sebastien Convers about 6 years ago. Updated over 4 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2018-10-24
Due date:
% Done:

0%

Estimated time:
PHP Version:
7.2
Tags:
Complexity:
Sprint Focus:

Description

Is it possible to make the public function get() a static function ?

That way, we can do this in Typoscript:


<INCLUDE_TYPOSCRIPT: source="FILE:EXT:my_ext/Configuration/TypoScript/Extension/news.typoscript" condition="userFunc = TYPO3\\CMS\\Core\\Configuration\\ExtensionConfiguration::get('my_ext', 'loadNewsTyposcriptPreset')">

For information, this is working BUT raise an error log get is not static

And yes, i could do

condition="userFunc = TYPO3\\CMS\\Core\\Utility\\ExtensionManagementUtility::isLoaded('news')"
but that's not the same as what i'm looking to achieve.

Actions

Also available in: Atom PDF