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

Public Member Functions

array getConfiguration (string $configurationType, ?string $extensionName=null, ?string $pluginName=null)
 
 setConfiguration (array $configuration=[])
 
 setRequest (ServerRequestInterface $request)
 

Public Attributes

const CONFIGURATION_TYPE_FRAMEWORK = 'Framework'
 
const CONFIGURATION_TYPE_SETTINGS = 'Settings'
 
const CONFIGURATION_TYPE_FULL_TYPOSCRIPT = 'FullTypoScript'
 

Detailed Description

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

Definition at line 26 of file ConfigurationManagerInterface.php.

Member Function Documentation

◆ getConfiguration()

array TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface::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.

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.
Returns
‪array The configuration

Implemented in TYPO3\CMS\Extbase\Configuration\ConfigurationManager, and TYPO3\CMS\Form\Mvc\Configuration\ConfigurationManager.

Referenced by TYPO3\CMS\FrontendLogin\Service\RecoveryService\__construct(), TYPO3\CMS\FrontendLogin\Configuration\RecoveryConfiguration\__construct(), TYPO3\CMS\Form\Domain\Configuration\ConfigurationService\__construct(), TYPO3\CMS\Form\Mvc\Persistence\FormPersistenceManager\__construct(), TYPO3\CMS\Form\Controller\AbstractBackendController\initializeObject(), TYPO3\CMS\Form\Domain\Finishers\ConfirmationFinisher\injectConfigurationManager(), and TYPO3\CMS\Extbase\Mvc\Controller\ActionController\injectConfigurationManager().

◆ setConfiguration()

TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface::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

Set by extbase bootstrap internally.

Todo:
‪: It may be possible to remove this in v13?!

Implemented in TYPO3\CMS\Extbase\Configuration\ConfigurationManager.

◆ setRequest()

TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface::setRequest ( ServerRequestInterface  $request)

Set the current request. The ConfigurationManager needs this to determine which concrete ConfigurationManager (BE / FE) has to be created, and the concrete ConfigurationManager need this to access current site and similar.

This state is updated by extbase bootstrap.

Note this makes this singleton stateful! This is ugly, but can't be avoided since the ConfigurationManager is injected into services that are injected itself. This stateful singleton is of course an anti-pattern, but it is very hard to get rid of until a re-design of the extbase configuration logic.

Parameters
ServerRequestInterface$request

Set by extbase bootstrap internally.

Implemented in TYPO3\CMS\Extbase\Configuration\ConfigurationManager.

Referenced by TYPO3\CMS\Form\Mvc\Persistence\FormPersistenceManager\__construct().

Member Data Documentation

◆ CONFIGURATION_TYPE_FRAMEWORK

const TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK = 'Framework'

Definition at line 28 of file ConfigurationManagerInterface.php.

Referenced by TYPO3\CMS\Extbase\Core\Bootstrap\clearCacheOnError(), TYPO3\CMS\Extbase\Service\CacheService\clearCachesOfRegisteredPageIds(), TYPO3\CMS\Extbase\Tests\Functional\Utility\LocalizationUtilityTest\clearLabelWithTypoScript(), TYPO3\CMS\Extbase\Persistence\Generic\QueryFactory\create(), TYPO3\CMS\Extbase\Persistence\Generic\Backend\determineStoragePageIdForNewRecord(), TYPO3\CMS\Extbase\Configuration\ConfigurationManager\getConfiguration(), TYPO3\CMS\Extbase\Tests\Unit\Service\ExtensionServiceTest\getPluginNameByActionReturnsCurrentIfItCanHandleTheActionEvenIfMoreThanOnePluginMatches(), TYPO3\CMS\Extbase\Tests\Unit\Service\ExtensionServiceTest\getPluginNameByActionTests(), TYPO3\CMS\Extbase\Tests\Unit\Service\ExtensionServiceTest\getPluginNameByActionThrowsExceptionIfMoreThanOnePluginMatches(), TYPO3\CMS\Extbase\Service\ExtensionService\getPluginNameFromFrameworkConfiguration(), TYPO3\CMS\Extbase\Service\ExtensionService\getPluginNamespace(), TYPO3\CMS\Extbase\Service\ExtensionService\getTargetPageTypeByFormat(), TYPO3\CMS\Extbase\Tests\Unit\Service\ExtensionServiceTest\getTargetPageTypeByFormatReturnsMappedPageTypeFromConfiguration(), TYPO3\CMS\Extbase\Tests\Unit\Service\ExtensionServiceTest\getTargetPageTypeByFormatReturnsZeroIfNoMappingIsSet(), TYPO3\CMS\Extbase\Service\ExtensionService\getTargetPidByPlugin(), TYPO3\CMS\Extbase\Persistence\Generic\Backend\insertObject(), TYPO3\CMS\Extbase\Core\Bootstrap\isExtbaseRequestCacheable(), TYPO3\CMS\Extbase\Mvc\Web\RequestBuilder\loadDefaultValues(), TYPO3\CMS\Extbase\Tests\Functional\Utility\LocalizationUtilityTest\loadTypoScriptLabels(), TYPO3\CMS\Extbase\Utility\LocalizationUtility\loadTypoScriptLabels(), TYPO3\CMS\Form\Service\TranslationService\loadTypoScriptLabels(), TYPO3\CMS\Extbase\Tests\Unit\Service\ExtensionServiceTest\pluginNamespaceCanBeOverridden(), TYPO3\CMS\Extbase\Persistence\Generic\Backend\removeEntity(), TYPO3\CMS\Fluid\ViewHelpers\Be\TableListViewHelper\render(), TYPO3\CMS\Extbase\Mvc\Web\RequestBuilder\resolveActionName(), TYPO3\CMS\Extbase\Mvc\Web\RequestBuilder\resolveControllerClassName(), TYPO3\CMS\Extbase\Tests\Unit\Service\CacheServiceTest\setUp(), TYPO3\CMS\Extbase\Mvc\Controller\ActionController\setViewConfiguration(), TYPO3\CMS\Extbase\Tests\Functional\Utility\LocalizationUtilityTest\translateWillReturnLabelsFromTsEvenIfNoXlfFileExists(), and TYPO3\CMS\Extbase\Persistence\Generic\Backend\updateObject().

◆ CONFIGURATION_TYPE_FULL_TYPOSCRIPT

◆ CONFIGURATION_TYPE_SETTINGS