ConfigurationManager implements ConfigurationManagerInterface
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.
Table of Contents
Interfaces
- ConfigurationManagerInterface
- Class ConfigurationManagerInterface
Properties
Methods
- __construct() : mixed
- getConfiguration() : array<string|int, mixed>
- Returns the specified configuration.
- getContentObject() : ContentObjectRenderer|null
- isFeatureEnabled() : bool
- Returns TRUE if a certain feature, identified by $featureName should be activated, FALSE for backwards-compatible behavior.
- setConfiguration() : void
- Sets the specified raw configuration coming from the outside.
- setContentObject() : void
- setRequest() : void
- initializeConcreteConfigurationManager() : void
Properties
$concreteConfigurationManager
protected
FrontendConfigurationManager|BackendConfigurationManager
$concreteConfigurationManager
Tags
Methods
__construct()
public
__construct(ContainerInterface $container) : mixed
Parameters
- $container : ContainerInterface
getConfiguration()
Returns the specified configuration.
public
getConfiguration(string $configurationType[, string|null $extensionName = null ][, string|null $pluginName = null ]) : array<string|int, mixed>
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
- $configurationType : string
-
The kind of configuration to fetch - must be one of the CONFIGURATION_TYPE_* constants
- $extensionName : string|null = null
-
if specified, the configuration for the given extension will be returned.
- $pluginName : string|null = null
-
if specified, the configuration for the given plugin will be returned.
Tags
Return values
array<string|int, mixed> —The configuration
getContentObject()
public
getContentObject() : ContentObjectRenderer|null
since v12. Remove in v13.
Return values
ContentObjectRenderer|nullisFeatureEnabled()
Returns TRUE if a certain feature, identified by $featureName should be activated, FALSE for backwards-compatible behavior.
public
isFeatureEnabled(string $featureName) : bool
since TYPO3 v12, will be removed in TYPO3 v13. Remove together with other extbase feature toggle related code.
This is an INTERNAL API used throughout Extbase and Fluid for providing backwards-compatibility. Do not use it in your custom code!
Parameters
- $featureName : string
Return values
boolsetConfiguration()
Sets the specified raw configuration coming from the outside.
public
setConfiguration([array<string|int, mixed> $configuration = [] ]) : void
Note that this is a low level method and only makes sense to be used by Extbase internally.
Parameters
- $configuration : array<string|int, mixed> = []
-
The new configuration
Set by extbase bootstrap internally. Must be called after setRequest() has been called.
setContentObject()
public
setContentObject(ContentObjectRenderer $contentObject) : void
since v12. Remove in v13.
Parameters
- $contentObject : ContentObjectRenderer
setRequest()
public
setRequest(ServerRequestInterface $request) : void
Parameters
- $request : ServerRequestInterface
initializeConcreteConfigurationManager()
protected
initializeConcreteConfigurationManager() : void