BackendConfigurationManager

final readonly class \TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager

Load TypoScript of a page in backend mode.

Extbase Backend modules can be configured with Frontend TypoScript. This is of course a very bad thing, but it is how it is ^^ (we'll get rid of this at some point, promised!)

First, this means Backend extbase module performance scales with the amount of Frontend TypoScript. Furthermore, in contrast to Frontend, Backend Modules are not necessarily bound to pages in the first place - they may not have a page tree und thus no page id at all, like for instance the ext:beuser module.

Table of Contents

Methods

__construct()  : mixed
getConfiguration()  : array
Loads the Extbase Framework configuration.
getTypoScriptSetup()  : array
Returns TypoScript Setup array from current Environment.

Methods

__construct()

public __construct(TypoScriptService $typoScriptService, PhpFrontend $typoScriptCache, FrontendInterface $runtimeCache, SysTemplateRepository $sysTemplateRepository, SiteFinder $siteFinder, FrontendTypoScriptFactory $frontendTypoScriptFactory, ConnectionPool $connectionPool, SetRegistry $setRegistry) : mixed

Parameters

$typoScriptService : TypoScriptService
$typoScriptCache : PhpFrontend
$runtimeCache : FrontendInterface
$sysTemplateRepository : SysTemplateRepository
$siteFinder : SiteFinder
$frontendTypoScriptFactory : FrontendTypoScriptFactory
$connectionPool : ConnectionPool
$setRegistry : SetRegistry

getConfiguration()

Loads the Extbase Framework configuration.

public getConfiguration(ServerRequestInterface $request, array $configuration[, string|null $extensionName = null ][, string|null $pluginName = null ]) : array

The Extbase framework configuration HAS TO be retrieved using this method, as they are come from different places than the normal settings. Framework configuration is, in contrast to normal settings, needed for the Extbase framework to operate correctly.

Parameters

$request : ServerRequestInterface
$configuration : array

low level configuration from outside, typically ContentObjectRenderer TypoScript element config

$extensionName : string|null = null

if specified, the configuration for the given extension will be returned (plugin.tx_extensionname)

$pluginName : string|null = null

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

Return values

array —

the Extbase framework configuration

getTypoScriptSetup()

Returns TypoScript Setup array from current Environment.

public getTypoScriptSetup(ServerRequestInterface $request) : array

Parameters

$request : ServerRequestInterface

Return values

array —

the raw TypoScript setup

On this page