‪TYPO3CMS  11.5
TYPO3\CMS\Extbase\Configuration\ConfigurationManager Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Configuration\ConfigurationManager:
TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface TYPO3\CMS\Core\SingletonInterface TYPO3\CMS\Form\Mvc\Configuration\ConfigurationManager

Public Member Functions

 __construct (ContainerInterface $container)
 
 setContentObject (ContentObjectRenderer $contentObject)
 
TYPO3 CMS Frontend ContentObject ContentObjectRenderer null getContentObject ()
 
 setConfiguration (array $configuration=[])
 
array getConfiguration (string $configurationType, ?string $extensionName=null, ?string $pluginName=null)
 
bool isFeatureEnabled (string $featureName)
 

Protected Member Functions

 initializeConcreteConfigurationManager ()
 

Protected Attributes

AbstractConfigurationManager $concreteConfigurationManager
 

Private Attributes

ContainerInterface $container
 

Additional Inherited Members

- ‪Public Attributes inherited from ‪TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface
const CONFIGURATION_TYPE_FRAMEWORK = 'Framework'
 
const CONFIGURATION_TYPE_SETTINGS = 'Settings'
 
const CONFIGURATION_TYPE_FULL_TYPOSCRIPT = 'FullTypoScript'
 

Detailed Description

A configuration manager following the strategy pattern. It hides the concrete implementation of the configuration manager and provides a unified access point.

only to be used within Extbase, not part of TYPO3 Core API.

Definition at line 32 of file ConfigurationManager.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Extbase\Configuration\ConfigurationManager::__construct ( ContainerInterface  $container)

Member Function Documentation

◆ getConfiguration()

array TYPO3\CMS\Extbase\Configuration\ConfigurationManager::getConfiguration ( string  $configurationType,
?string  $extensionName = null,
?string  $pluginName = null 
)

Returns the specified configuration. The actual configuration will be merged from different sources in a defined order.

You can get the following types of configuration invoking: CONFIGURATION_TYPE_SETTINGS: Extbase settings CONFIGURATION_TYPE_FRAMEWORK: the current module/plugin settings CONFIGURATION_TYPE_FULL_TYPOSCRIPT: a raw TS array

Note that this is a low level method and only makes sense to be used by Extbase internally.

Parameters
string$configurationType‪The kind of configuration to fetch - must be one of the CONFIGURATION_TYPE_* constants
string | null$extensionName‪if specified, the configuration for the given extension will be returned.
string | null$pluginName‪if specified, the configuration for the given plugin will be returned.
Exceptions
Exception

Implements TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface.

Reimplemented in TYPO3\CMS\Form\Mvc\Configuration\ConfigurationManager.

Definition at line 101 of file ConfigurationManager.php.

References TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface\CONFIGURATION_TYPE_FRAMEWORK, TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface\CONFIGURATION_TYPE_FULL_TYPOSCRIPT, and TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface\CONFIGURATION_TYPE_SETTINGS.

Referenced by TYPO3\CMS\FrontendLogin\Configuration\RecoveryConfiguration\__construct(), TYPO3\CMS\FrontendLogin\Service\RecoveryService\__construct(), TYPO3\CMS\Fluid\View\TemplatePaths\getContextSpecificViewConfiguration(), and TYPO3\CMS\Extbase\Configuration\ConfigurationManager\isFeatureEnabled().

◆ getContentObject()

TYPO3 CMS Frontend ContentObject ContentObjectRenderer null TYPO3\CMS\Extbase\Configuration\ConfigurationManager::getContentObject ( )
Returns
‪\TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer|null

Implements TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface.

Definition at line 68 of file ConfigurationManager.php.

◆ initializeConcreteConfigurationManager()

TYPO3\CMS\Extbase\Configuration\ConfigurationManager::initializeConcreteConfigurationManager ( )
protected

◆ isFeatureEnabled()

bool TYPO3\CMS\Extbase\Configuration\ConfigurationManager::isFeatureEnabled ( string  $featureName)

Returns TRUE if a certain feature, identified by $featureName should be activated, FALSE for backwards-compatible behavior.

This is an INTERNAL API used throughout Extbase and Fluid for providing backwards-compatibility. Do not use it in your custom code!

Parameters
string$featureName
Returns
‪bool

Implements TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface.

Definition at line 126 of file ConfigurationManager.php.

References TYPO3\CMS\Extbase\Configuration\ConfigurationManager\getConfiguration().

◆ setConfiguration()

TYPO3\CMS\Extbase\Configuration\ConfigurationManager::setConfiguration ( array  $configuration = [])

Sets the specified raw configuration coming from the outside. Note that this is a low level method and only makes sense to be used by Extbase internally.

Parameters
array$configuration‪The new configuration

Implements TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface.

Definition at line 79 of file ConfigurationManager.php.

◆ setContentObject()

TYPO3\CMS\Extbase\Configuration\ConfigurationManager::setContentObject ( ContentObjectRenderer  $contentObject)
Parameters
\TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer$contentObject

Implements TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface.

Definition at line 60 of file ConfigurationManager.php.

Member Data Documentation

◆ $concreteConfigurationManager

AbstractConfigurationManager TYPO3\CMS\Extbase\Configuration\ConfigurationManager::$concreteConfigurationManager
protected

Definition at line 38 of file ConfigurationManager.php.

◆ $container

ContainerInterface TYPO3\CMS\Extbase\Configuration\ConfigurationManager::$container
private