ConfigurationManager extends ConfigurationManager implements ConfigurationManagerInterface

Extend the ExtbaseConfigurationManager to read YAML configurations.

Scope: frontend / backend

Internal

Table of Contents

Interfaces

ConfigurationManagerInterface
Class ConfigurationManagerInterface

Properties

$cache  : FrontendInterface
$concreteConfigurationManager  : AbstractConfigurationManager
$yamlSource  : YamlSource

Methods

__construct()  : mixed
getConfiguration()  : array<string|int, mixed>
Returns the specified configuration.
getContentObject()  : ContentObjectRenderer|null
Get the content object
injectYamlSource()  : mixed
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
getCacheFrontend()  : FrontendInterface
getConfigurationCacheKey()  : string
getConfigurationFromYamlFile()  : array<string|int, mixed>
Load and parse YAML files which are configured within the TypoScript path plugin.tx_extensionkey.settings.yamlConfigurations
getTypoScriptSettings()  : array<string|int, mixed>
getYamlSettingsFromCache()  : mixed
initializeConcreteConfigurationManager()  : void
overrideConfigurationByTypoScript()  : array<string|int, mixed>
setYamlSettingsIntoCache()  : mixed

Properties

Methods

__construct()

public __construct(ContainerInterface $container) : mixed
Parameters
$container : ContainerInterface

getConfiguration()

Returns the specified configuration.

public getConfiguration(string $configurationType[, string $extensionName = null ][, string $pluginName = null ]) : array<string|int, mixed>
Parameters
$configurationType : string

The kind of configuration to fetch - must be one of the CONFIGURATION_TYPE_* constants

$extensionName : string = null

if specified, the configuration for the given extension will be returned.

$pluginName : string = null

if specified, the configuration for the given plugin will be returned.

Internal
Return values
array<string|int, mixed>

The configuration

isFeatureEnabled()

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

public isFeatureEnabled(string $featureName) : bool

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
bool

setConfiguration()

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

getConfigurationCacheKey()

protected getConfigurationCacheKey(string $cacheKeySuffix) : string
Parameters
$cacheKeySuffix : string
Return values
string

getConfigurationFromYamlFile()

Load and parse YAML files which are configured within the TypoScript path plugin.tx_extensionkey.settings.yamlConfigurations

protected getConfigurationFromYamlFile(string $extensionName) : array<string|int, mixed>

The following steps will be done:

  • Convert each singe YAML file into an array
  • merge this arrays together
  • resolve all declared inheritances
  • remove all keys if their values are NULL
  • return all configuration paths within TYPO3.CMS
  • sort by array keys, if all keys within the current nesting level are numerical keys
  • resolve possible TypoScript settings in FE mode
Parameters
$extensionName : string
Tags
throws
ExtensionNameRequiredException
Return values
array<string|int, mixed>

getTypoScriptSettings()

protected getTypoScriptSettings(string $extensionName) : array<string|int, mixed>
Parameters
$extensionName : string
Return values
array<string|int, mixed>

getYamlSettingsFromCache()

protected getYamlSettingsFromCache(string $cacheKeySuffix) : mixed
Parameters
$cacheKeySuffix : string

initializeConcreteConfigurationManager()

protected initializeConcreteConfigurationManager() : void

overrideConfigurationByTypoScript()

protected overrideConfigurationByTypoScript(array<string|int, mixed> $yamlSettings, string $extensionName) : array<string|int, mixed>
Parameters
$yamlSettings : array<string|int, mixed>
$extensionName : string
Return values
array<string|int, mixed>

setYamlSettingsIntoCache()

protected setYamlSettingsIntoCache(string $cacheKeySuffix, array<string|int, mixed> $yamlSettings) : mixed
Parameters
$cacheKeySuffix : string
$yamlSettings : array<string|int, mixed>

        
On this page

Search results