TYPO3 v15 dev-main snapshot ()
This commit is contained in:
@@ -0,0 +1,331 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* This file is part of the TYPO3 CMS project.
|
||||
*
|
||||
* It is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU General Public License, either version 2
|
||||
* of the License, or any later version.
|
||||
*
|
||||
* For the full copyright and license information, please read the
|
||||
* LICENSE.txt file that was distributed with this source code.
|
||||
*
|
||||
* The TYPO3 project - inspiring people to share!
|
||||
*/
|
||||
|
||||
namespace TYPO3\CMS\Extbase\Configuration;
|
||||
|
||||
use Psr\Http\Message\ServerRequestInterface;
|
||||
use Symfony\Component\DependencyInjection\Attribute\Autowire;
|
||||
use TYPO3\CMS\Core\Authentication\BackendUserAuthentication;
|
||||
use TYPO3\CMS\Core\Cache\Frontend\FrontendInterface;
|
||||
use TYPO3\CMS\Core\Cache\Frontend\PhpFrontend;
|
||||
use TYPO3\CMS\Core\Database\Connection;
|
||||
use TYPO3\CMS\Core\Database\ConnectionPool;
|
||||
use TYPO3\CMS\Core\Database\Query\QueryHelper;
|
||||
use TYPO3\CMS\Core\Database\Query\Restriction\DeletedRestriction;
|
||||
use TYPO3\CMS\Core\Exception\SiteNotFoundException;
|
||||
use TYPO3\CMS\Core\Site\Entity\NullSite;
|
||||
use TYPO3\CMS\Core\Site\Entity\Site;
|
||||
use TYPO3\CMS\Core\Site\Set\SetRegistry;
|
||||
use TYPO3\CMS\Core\Site\SiteFinder;
|
||||
use TYPO3\CMS\Core\Type\Bitmask\Permission;
|
||||
use TYPO3\CMS\Core\TypoScript\FrontendTypoScriptFactory;
|
||||
use TYPO3\CMS\Core\TypoScript\IncludeTree\SysTemplateRepository;
|
||||
use TYPO3\CMS\Core\TypoScript\TypoScriptService;
|
||||
use TYPO3\CMS\Core\Utility\ArrayUtility;
|
||||
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||||
use TYPO3\CMS\Core\Utility\MathUtility;
|
||||
use TYPO3\CMS\Core\Utility\RootlineUtility;
|
||||
use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer;
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* @internal only to be used within Extbase, not part of TYPO3 Core API.
|
||||
*/
|
||||
final readonly class BackendConfigurationManager
|
||||
{
|
||||
public function __construct(
|
||||
private TypoScriptService $typoScriptService,
|
||||
#[Autowire(service: 'cache.typoscript')]
|
||||
private PhpFrontend $typoScriptCache,
|
||||
#[Autowire(service: 'cache.runtime')]
|
||||
private FrontendInterface $runtimeCache,
|
||||
private SysTemplateRepository $sysTemplateRepository,
|
||||
private SiteFinder $siteFinder,
|
||||
private FrontendTypoScriptFactory $frontendTypoScriptFactory,
|
||||
private ConnectionPool $connectionPool,
|
||||
private SetRegistry $setRegistry,
|
||||
) {}
|
||||
|
||||
/**
|
||||
* Loads the Extbase Framework configuration.
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @param array $configuration low level configuration from outside, typically ContentObjectRenderer TypoScript element config
|
||||
* @param string|null $extensionName if specified, the configuration for the given extension will be returned (plugin.tx_extensionname)
|
||||
* @param string|null $pluginName if specified, the configuration for the given plugin will be returned (plugin.tx_extensionname_pluginname)
|
||||
* @return array the Extbase framework configuration
|
||||
*/
|
||||
public function getConfiguration(ServerRequestInterface $request, array $configuration, ?string $extensionName = null, ?string $pluginName = null): array
|
||||
{
|
||||
$extensionNameFromConfig = $configuration['extensionName'] ?? null;
|
||||
$pluginNameFromConfig = $configuration['pluginName'] ?? null;
|
||||
$configuration = $this->typoScriptService->convertTypoScriptArrayToPlainArray($configuration);
|
||||
|
||||
$typoscriptSetup = $this->getTypoScriptSetup($request);
|
||||
$frameworkConfiguration = [];
|
||||
if (isset($typoscriptSetup['config.']['tx_extbase.'])) {
|
||||
$frameworkConfiguration = $this->typoScriptService->convertTypoScriptArrayToPlainArray($typoscriptSetup['config.']['tx_extbase.']);
|
||||
}
|
||||
|
||||
if (!isset($frameworkConfiguration['persistence']['storagePid'])) {
|
||||
$currentPageId = $this->getCurrentPageId($request);
|
||||
$frameworkConfiguration['persistence']['storagePid'] = $currentPageId;
|
||||
}
|
||||
// only merge $configuration and override controller configuration when retrieving configuration of the current plugin
|
||||
if ($extensionName === null || $extensionName === $extensionNameFromConfig && $pluginName === $pluginNameFromConfig) {
|
||||
$pluginConfiguration = $this->getPluginConfiguration($request, (string)$extensionNameFromConfig, (string)$pluginNameFromConfig);
|
||||
ArrayUtility::mergeRecursiveWithOverrule($pluginConfiguration, $configuration);
|
||||
$pluginConfiguration['controllerConfiguration'] = [];
|
||||
} else {
|
||||
$pluginConfiguration = $this->getPluginConfiguration($request, $extensionName, (string)$pluginName);
|
||||
$pluginConfiguration['controllerConfiguration'] = [];
|
||||
}
|
||||
ArrayUtility::mergeRecursiveWithOverrule($frameworkConfiguration, $pluginConfiguration);
|
||||
|
||||
if (!empty($frameworkConfiguration['persistence']['storagePid'])) {
|
||||
if (is_array($frameworkConfiguration['persistence']['storagePid'])) {
|
||||
// We simulate the frontend to enable the use of cObjects in
|
||||
// stdWrap. We then convert the configuration to normal TypoScript
|
||||
// and apply the stdWrap to the storagePid
|
||||
// Use makeInstance here since extbase Bootstrap always setContentObject(null) in Backend, no need to call getContentObject().
|
||||
$conf = $this->typoScriptService->convertPlainArrayToTypoScriptArray($frameworkConfiguration['persistence']);
|
||||
$frameworkConfiguration['persistence']['storagePid'] = GeneralUtility::makeInstance(ContentObjectRenderer::class)->stdWrapValue('storagePid', $conf);
|
||||
}
|
||||
|
||||
if (!empty($frameworkConfiguration['persistence']['recursive'])) {
|
||||
$storagePids = $this->getRecursiveStoragePids(
|
||||
GeneralUtility::intExplode(',', (string)($frameworkConfiguration['persistence']['storagePid'] ?? '')),
|
||||
(int)$frameworkConfiguration['persistence']['recursive']
|
||||
);
|
||||
$frameworkConfiguration['persistence']['storagePid'] = implode(',', $storagePids);
|
||||
}
|
||||
}
|
||||
return $frameworkConfiguration;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns TypoScript Setup array from current Environment.
|
||||
*
|
||||
* @return array the raw TypoScript setup
|
||||
*/
|
||||
public function getTypoScriptSetup(ServerRequestInterface $request): array
|
||||
{
|
||||
$currentPageId = $this->getCurrentPageId($request);
|
||||
|
||||
$cacheIdentifier = 'extbase-backend-typoscript-pageId-' . $currentPageId;
|
||||
$setupArray = $this->runtimeCache->get($cacheIdentifier);
|
||||
if (is_array($setupArray)) {
|
||||
return $setupArray;
|
||||
}
|
||||
|
||||
$site = $request->getAttribute('site');
|
||||
if (($site === null || $site instanceof NullSite) && $currentPageId > 0) {
|
||||
// Due to the weird magic of getting the pid of the first root template when
|
||||
// not having a pageId (extbase BE modules without page tree / no page selected),
|
||||
// we also have no proper site in this case.
|
||||
// So we try to get the site for this pageId. This way, site settings for this
|
||||
// first TS page are turned into constants and can be used in setup and setup
|
||||
// conditions.
|
||||
try {
|
||||
$site = $this->siteFinder->getSiteByPageId($currentPageId);
|
||||
} catch (SiteNotFoundException) {
|
||||
// Keep null / NullSite when no site could be determined for whatever reason.
|
||||
}
|
||||
}
|
||||
if ($site === null) {
|
||||
// If still no site object, have NullSite (usually pid 0).
|
||||
$site = new NullSite();
|
||||
}
|
||||
|
||||
$rootLine = [];
|
||||
$sysTemplateRows = [];
|
||||
if ($currentPageId > 0) {
|
||||
$rootLine = GeneralUtility::makeInstance(RootlineUtility::class, $currentPageId)->get();
|
||||
// When the site acts as a TypoScript root, limit sys_template lookup to
|
||||
// pages within this site by truncating the rootline at the site root page.
|
||||
// This mirrors the frontend behavior and prevents sys_template records from
|
||||
// parent sites from leaking into the backend TypoScript evaluation.
|
||||
// @see \TYPO3\CMS\Frontend\Page\PageInformationFactory::setSysTemplateRows()
|
||||
$rootLineForSysTemplates = $rootLine;
|
||||
if ($site instanceof Site && $site->isTypoScriptRoot()) {
|
||||
$rootLineForSysTemplates = [];
|
||||
foreach ($rootLine as $index => $rootlinePage) {
|
||||
$rootLineForSysTemplates[$index] = $rootlinePage;
|
||||
if ((int)($rootlinePage['uid'] ?? 0) === $site->getRootPageId()) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
$sysTemplateRows = $this->sysTemplateRepository->getSysTemplateRowsByRootline($rootLineForSysTemplates, $request);
|
||||
ksort($rootLine);
|
||||
}
|
||||
$sets = $site instanceof Site ? $this->setRegistry->getSets(...$site->getSets()) : [];
|
||||
if (empty($sysTemplateRows) && $sets === []) {
|
||||
// If no page with sys_template rows or site sets could be derived, we
|
||||
// "fake" a row to trigger inclusion of 'global' TypoScript only.
|
||||
$sysTemplateFakeRow = [
|
||||
'uid' => 0,
|
||||
'pid' => 0,
|
||||
'title' => 'Fake sys_template row to force global TypoScript loading',
|
||||
'root' => 1,
|
||||
'clear' => 3,
|
||||
'include_static_file' => '',
|
||||
'basedOn' => '',
|
||||
'includeStaticAfterBasedOn' => 0,
|
||||
'static_file_mode' => false,
|
||||
'constants' => '',
|
||||
'config' => '',
|
||||
'deleted' => 0,
|
||||
'hidden' => 0,
|
||||
'starttime' => 0,
|
||||
'endtime' => 0,
|
||||
'sorting' => 0,
|
||||
];
|
||||
$sysTemplateRows[] = $sysTemplateFakeRow;
|
||||
}
|
||||
|
||||
$expressionMatcherVariables = [
|
||||
'request' => $request,
|
||||
'pageId' => $currentPageId,
|
||||
'page' => !empty($rootLine) ? array_first($rootLine) : [],
|
||||
'fullRootLine' => $rootLine,
|
||||
'site' => $site,
|
||||
];
|
||||
|
||||
$typoScript = $this->frontendTypoScriptFactory->createSettingsAndSetupConditions($site, $sysTemplateRows, $expressionMatcherVariables, $this->typoScriptCache);
|
||||
$typoScript = $this->frontendTypoScriptFactory->createSetupConfigOrFullSetup(true, $typoScript, $site, $sysTemplateRows, $expressionMatcherVariables, '0', $this->typoScriptCache, null);
|
||||
$setupArray = $typoScript->getSetupArray();
|
||||
$this->runtimeCache->set($cacheIdentifier, $setupArray);
|
||||
return $setupArray;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the TypoScript configuration found in module.tx_yourextension_yourmodule
|
||||
* merged with the global configuration of your extension from module.tx_yourextension
|
||||
*
|
||||
* @param string|null $pluginName in BE mode this is actually the module signature. But we're using it just like the plugin name in FE
|
||||
*/
|
||||
private function getPluginConfiguration(ServerRequestInterface $request, string $extensionName, ?string $pluginName = null): array
|
||||
{
|
||||
$setup = $this->getTypoScriptSetup($request);
|
||||
$pluginConfiguration = [];
|
||||
if (is_array($setup['module.']['tx_' . strtolower($extensionName) . '.'] ?? false)) {
|
||||
$pluginConfiguration = $this->typoScriptService->convertTypoScriptArrayToPlainArray($setup['module.']['tx_' . strtolower($extensionName) . '.']);
|
||||
}
|
||||
if ($pluginName !== null) {
|
||||
$pluginSignature = strtolower($extensionName . '_' . $pluginName);
|
||||
if (is_array($setup['module.']['tx_' . $pluginSignature . '.'] ?? false)) {
|
||||
$overruleConfiguration = $this->typoScriptService->convertTypoScriptArrayToPlainArray($setup['module.']['tx_' . $pluginSignature . '.']);
|
||||
ArrayUtility::mergeRecursiveWithOverrule($pluginConfiguration, $overruleConfiguration);
|
||||
}
|
||||
}
|
||||
return $pluginConfiguration;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get page id from the request, accessing POST / GET 'id'
|
||||
*/
|
||||
private function getCurrentPageId(ServerRequestInterface $request): int
|
||||
{
|
||||
// @todo: This misuses 'id' as a broken convention for pages-uid. The filelist module for instance
|
||||
// uses 'id' as "storage-uid:path", which is only mitigated here by testing the argument
|
||||
// with MU:canBeInterpretedAsInteger().
|
||||
// This is in-line with a similar misuse in BackendModuleValidator.
|
||||
$id = 0;
|
||||
$potentialId = $request->getParsedBody()['id'] ?? $request->getQueryParams()['id'] ?? 0;
|
||||
if (MathUtility::canBeInterpretedAsInteger($potentialId) && $potentialId > 0) {
|
||||
$id = (int)$potentialId;
|
||||
}
|
||||
return $id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an array of storagePIDs that are below a list of storage pids.
|
||||
*
|
||||
* @param int[] $storagePids Storage PIDs to start at; multiple PIDs possible as comma-separated list
|
||||
* @param int $recursionDepth Maximum number of levels to search, 0 to disable recursive lookup
|
||||
* @return int[] Uid list including the start $storagePids
|
||||
*/
|
||||
private function getRecursiveStoragePids(array $storagePids, int $recursionDepth = 0): array
|
||||
{
|
||||
if ($recursionDepth <= 0) {
|
||||
return $storagePids;
|
||||
}
|
||||
$permsClause = QueryHelper::stripLogicalOperatorPrefix(
|
||||
$this->getBackendUser()->getPagePermsClause(Permission::PAGE_SHOW)
|
||||
);
|
||||
$recursiveStoragePids = [];
|
||||
foreach ($storagePids as $startPid) {
|
||||
$startPid = abs($startPid);
|
||||
$recursiveStoragePids = array_merge(
|
||||
$recursiveStoragePids,
|
||||
[ $startPid ],
|
||||
$this->getPageChildrenRecursive($startPid, $recursionDepth, 0, $permsClause)
|
||||
);
|
||||
}
|
||||
return array_unique($recursiveStoragePids);
|
||||
}
|
||||
|
||||
/**
|
||||
* Recursively fetch all children of a given page
|
||||
*
|
||||
* @return int[] List of child row $uid's
|
||||
*/
|
||||
private function getPageChildrenRecursive(int $pid, int $depth, int $begin, string $permsClause): array
|
||||
{
|
||||
$children = [];
|
||||
if ($pid && $depth > 0) {
|
||||
$queryBuilder = $this->connectionPool->getQueryBuilderForTable('pages');
|
||||
$queryBuilder->getRestrictions()->removeAll()->add(GeneralUtility::makeInstance(DeletedRestriction::class));
|
||||
$statement = $queryBuilder->select('uid')
|
||||
->from('pages')
|
||||
->where(
|
||||
$queryBuilder->expr()->eq('pid', $queryBuilder->createNamedParameter($pid, Connection::PARAM_INT)),
|
||||
$queryBuilder->expr()->eq('language_tag', 0),
|
||||
$permsClause
|
||||
)
|
||||
->orderBy('uid')
|
||||
->executeQuery();
|
||||
while ($row = $statement->fetchAssociative()) {
|
||||
if ($begin <= 0) {
|
||||
$children[] = (int)$row['uid'];
|
||||
}
|
||||
if ($depth > 1) {
|
||||
$theSubList = $this->getPageChildrenRecursive((int)$row['uid'], $depth - 1, $begin - 1, $permsClause);
|
||||
$children = array_merge($children, $theSubList);
|
||||
}
|
||||
}
|
||||
}
|
||||
return $children;
|
||||
}
|
||||
|
||||
private function getBackendUser(): BackendUserAuthentication
|
||||
{
|
||||
return $GLOBALS['BE_USER'];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,125 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* This file is part of the TYPO3 CMS project.
|
||||
*
|
||||
* It is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU General Public License, either version 2
|
||||
* of the License, or any later version.
|
||||
*
|
||||
* For the full copyright and license information, please read the
|
||||
* LICENSE.txt file that was distributed with this source code.
|
||||
*
|
||||
* The TYPO3 project - inspiring people to share!
|
||||
*/
|
||||
|
||||
namespace TYPO3\CMS\Extbase\Configuration;
|
||||
|
||||
use Psr\Http\Message\ServerRequestInterface;
|
||||
use TYPO3\CMS\Core\Http\ApplicationType;
|
||||
use TYPO3\CMS\Extbase\Configuration\Exception\NoServerRequestGivenException;
|
||||
|
||||
/**
|
||||
* Generic ConfigurationManager implementation. Uses BackendConfigurationManager
|
||||
* or FrontendConfigurationManager depending on request type.
|
||||
*
|
||||
* @internal only to be used within Extbase, not part of TYPO3 Core API.
|
||||
*/
|
||||
class ConfigurationManager implements ConfigurationManagerInterface
|
||||
{
|
||||
private ?ServerRequestInterface $request = null;
|
||||
private array $configuration = [];
|
||||
|
||||
/**
|
||||
* @todo Use runtime cache
|
||||
*/
|
||||
private array $feConfigCache = [];
|
||||
|
||||
public function __construct(
|
||||
private readonly FrontendConfigurationManager $feConfigManager,
|
||||
private readonly BackendConfigurationManager $beConfigManager,
|
||||
) {}
|
||||
|
||||
public function setRequest(ServerRequestInterface $request): void
|
||||
{
|
||||
$this->request = $request;
|
||||
}
|
||||
|
||||
public function setConfiguration(array $configuration = []): void
|
||||
{
|
||||
$this->configuration = $configuration;
|
||||
$this->feConfigCache = [];
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* @param string $configurationType The kind of configuration to fetch - must be one of the CONFIGURATION_TYPE_* constants
|
||||
* @param string|null $extensionName if specified, the configuration for the given extension will be returned.
|
||||
* @param string|null $pluginName if specified, the configuration for the given plugin will be returned.
|
||||
* @return array The configuration
|
||||
*/
|
||||
public function getConfiguration(string $configurationType, ?string $extensionName = null, ?string $pluginName = null): array
|
||||
{
|
||||
$request = $this->request;
|
||||
$configuration = $this->configuration;
|
||||
if ($request === null && ($GLOBALS['TYPO3_REQUEST'] ?? null) instanceof ServerRequestInterface) {
|
||||
// @todo: deprecate
|
||||
$request = $GLOBALS['TYPO3_REQUEST'];
|
||||
}
|
||||
if ($request === null) {
|
||||
// This is a *specific* exception (as opposed to a global one) to allow consumers to opt-out
|
||||
// of a Request dependency. The extbase persistence layer is an example: It can be useful to
|
||||
// only have a loose Request / TypoScript dependency in it, and the TS config values / toggles
|
||||
// used within the persistence layer are not crucially important and can fall back to hard
|
||||
// coded defaults.
|
||||
// Note custom extensions should typically not catch this exception. The dependency to
|
||||
// the current request is still an important dependency in most extbase places, e.g. in
|
||||
// controller and view related code.
|
||||
throw new NoServerRequestGivenException('No request given. ConfigurationManager has not been initialized properly.', 1721920500);
|
||||
}
|
||||
if (ApplicationType::fromRequest($request)->isFrontend()) {
|
||||
if ($configurationType === self::CONFIGURATION_TYPE_FULL_TYPOSCRIPT) {
|
||||
return $this->feConfigManager->getTypoScriptSetup($request);
|
||||
}
|
||||
// @todo Throw if empty to not end up with '_': Invalid setup/call!
|
||||
$feConfigCacheKey = strtolower(
|
||||
($extensionName ?? $configuration['extensionName'] ?? null)
|
||||
. '_'
|
||||
. ($pluginName ?? $configuration['pluginName'] ?? null)
|
||||
);
|
||||
if ($configurationType === self::CONFIGURATION_TYPE_SETTINGS) {
|
||||
if (isset($this->feConfigCache[$feConfigCacheKey])) {
|
||||
return $this->feConfigCache[$feConfigCacheKey]['settings'] ?? [];
|
||||
}
|
||||
$this->feConfigCache[$feConfigCacheKey] = $this->feConfigManager->getConfiguration($request, $this->configuration, $extensionName, $pluginName);
|
||||
return $this->feConfigCache[$feConfigCacheKey]['settings'] ?? [];
|
||||
}
|
||||
if ($configurationType === self::CONFIGURATION_TYPE_FRAMEWORK) {
|
||||
if (isset($this->feConfigCache[$feConfigCacheKey])) {
|
||||
return $this->feConfigCache[$feConfigCacheKey];
|
||||
}
|
||||
$this->feConfigCache[$feConfigCacheKey] = $this->feConfigManager->getConfiguration($request, $this->configuration, $extensionName, $pluginName);
|
||||
return $this->feConfigCache[$feConfigCacheKey];
|
||||
}
|
||||
throw new \RuntimeException('Invalid configuration type "' . $configurationType . '"', 1206031879);
|
||||
} else {
|
||||
return match ($configurationType) {
|
||||
self::CONFIGURATION_TYPE_SETTINGS => $this->beConfigManager->getConfiguration($request, $this->configuration, $extensionName, $pluginName)['settings'] ?? [],
|
||||
self::CONFIGURATION_TYPE_FRAMEWORK => $this->beConfigManager->getConfiguration($request, $this->configuration, $extensionName, $pluginName),
|
||||
self::CONFIGURATION_TYPE_FULL_TYPOSCRIPT => $this->beConfigManager->getTypoScriptSetup($request),
|
||||
default => throw new \RuntimeException('Invalid configuration type "' . $configurationType . '"', 1721928055),
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* This file is part of the TYPO3 CMS project.
|
||||
*
|
||||
* It is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU General Public License, either version 2
|
||||
* of the License, or any later version.
|
||||
*
|
||||
* For the full copyright and license information, please read the
|
||||
* LICENSE.txt file that was distributed with this source code.
|
||||
*
|
||||
* The TYPO3 project - inspiring people to share!
|
||||
*/
|
||||
|
||||
namespace TYPO3\CMS\Extbase\Configuration;
|
||||
|
||||
use Psr\Http\Message\ServerRequestInterface;
|
||||
use TYPO3\CMS\Core\SingletonInterface;
|
||||
use TYPO3\CMS\Extbase\Configuration\Exception\NoServerRequestGivenException;
|
||||
|
||||
/**
|
||||
* @internal only to be used within Extbase, not part of TYPO3 Core API.
|
||||
*/
|
||||
interface ConfigurationManagerInterface extends SingletonInterface
|
||||
{
|
||||
public const CONFIGURATION_TYPE_FRAMEWORK = 'Framework';
|
||||
public const CONFIGURATION_TYPE_SETTINGS = 'Settings';
|
||||
public const CONFIGURATION_TYPE_FULL_TYPOSCRIPT = 'FullTypoScript';
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* @param string $configurationType The kind of configuration to fetch - must be one of the CONFIGURATION_TYPE_* constants
|
||||
* @param string|null $extensionName if specified, the configuration for the given extension will be returned.
|
||||
* @param string|null $pluginName if specified, the configuration for the given plugin will be returned.
|
||||
* @return array The configuration
|
||||
* @throws NoServerRequestGivenException
|
||||
*/
|
||||
public function getConfiguration(string $configurationType, ?string $extensionName = null, ?string $pluginName = null): array;
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* @param array $configuration The new configuration
|
||||
* @internal Set by extbase bootstrap internally.
|
||||
* @todo: It may be possible to remove this in v13?!
|
||||
*/
|
||||
public function setConfiguration(array $configuration = []): void;
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* @param ServerRequestInterface $request
|
||||
* @internal Set by extbase bootstrap internally.
|
||||
*/
|
||||
public function setRequest(ServerRequestInterface $request): void;
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* This file is part of the TYPO3 CMS project.
|
||||
*
|
||||
* It is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU General Public License, either version 2
|
||||
* of the License, or any later version.
|
||||
*
|
||||
* For the full copyright and license information, please read the
|
||||
* LICENSE.txt file that was distributed with this source code.
|
||||
*
|
||||
* The TYPO3 project - inspiring people to share!
|
||||
*/
|
||||
|
||||
namespace TYPO3\CMS\Extbase\Configuration;
|
||||
|
||||
use TYPO3\CMS\Extbase\Exception as ExtbaseException;
|
||||
|
||||
/**
|
||||
* A generic Configuration Exception
|
||||
*/
|
||||
class Exception extends ExtbaseException {}
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* This file is part of the TYPO3 CMS project.
|
||||
*
|
||||
* It is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU General Public License, either version 2
|
||||
* of the License, or any later version.
|
||||
*
|
||||
* For the full copyright and license information, please read the
|
||||
* LICENSE.txt file that was distributed with this source code.
|
||||
*
|
||||
* The TYPO3 project - inspiring people to share!
|
||||
*/
|
||||
|
||||
namespace TYPO3\CMS\Extbase\Configuration\Exception;
|
||||
|
||||
use TYPO3\CMS\Extbase\Exception;
|
||||
|
||||
/**
|
||||
* Thrown when the ConfigurationManager has not been initialized with a PSR-7 ServerRequestInterface.
|
||||
*/
|
||||
final class NoServerRequestGivenException extends Exception {}
|
||||
@@ -0,0 +1,326 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/*
|
||||
* This file is part of the TYPO3 CMS project.
|
||||
*
|
||||
* It is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU General Public License, either version 2
|
||||
* of the License, or any later version.
|
||||
*
|
||||
* For the full copyright and license information, please read the
|
||||
* LICENSE.txt file that was distributed with this source code.
|
||||
*
|
||||
* The TYPO3 project - inspiring people to share!
|
||||
*/
|
||||
|
||||
namespace TYPO3\CMS\Extbase\Configuration;
|
||||
|
||||
use Psr\EventDispatcher\EventDispatcherInterface;
|
||||
use Psr\Http\Message\ServerRequestInterface;
|
||||
use TYPO3\CMS\Core\Configuration\FlexForm\FlexFormTools;
|
||||
use TYPO3\CMS\Core\Domain\Repository\PageRepository;
|
||||
use TYPO3\CMS\Core\TypoScript\FrontendTypoScript;
|
||||
use TYPO3\CMS\Core\TypoScript\TypoScriptService;
|
||||
use TYPO3\CMS\Core\Utility\ArrayUtility;
|
||||
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||||
use TYPO3\CMS\Extbase\Event\Configuration\BeforeFlexFormConfigurationOverrideEvent;
|
||||
use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer;
|
||||
|
||||
/**
|
||||
* A general purpose configuration manager used in frontend mode.
|
||||
*
|
||||
* Should NOT be singleton, as a new configuration manager is needed per plugin.
|
||||
* @internal only to be used within Extbase, not part of TYPO3 Core API.
|
||||
*/
|
||||
final readonly class FrontendConfigurationManager
|
||||
{
|
||||
public function __construct(
|
||||
private TypoScriptService $typoScriptService,
|
||||
private FlexFormTools $flexFormTools,
|
||||
private PageRepository $pageRepository,
|
||||
private EventDispatcherInterface $eventDispatcher
|
||||
) {}
|
||||
|
||||
/**
|
||||
* Loads the Extbase Framework configuration.
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @param array $configuration low level configuration from outside, typically ContentObjectRenderer TypoScript element config
|
||||
* @param string|null $extensionName if specified, the configuration for the given extension will be returned (plugin.tx_extensionname)
|
||||
* @param string|null $pluginName if specified, the configuration for the given plugin will be returned (plugin.tx_extensionname_pluginname)
|
||||
* @return array the Extbase framework configuration
|
||||
*/
|
||||
public function getConfiguration(ServerRequestInterface $request, array $configuration, ?string $extensionName = null, ?string $pluginName = null): array
|
||||
{
|
||||
$extensionNameFromConfig = $configuration['extensionName'] ?? null;
|
||||
$pluginNameFromConfig = $configuration['pluginName'] ?? null;
|
||||
$configuration = $this->typoScriptService->convertTypoScriptArrayToPlainArray($configuration);
|
||||
|
||||
$frameworkConfiguration = $this->getExtbaseConfiguration($request);
|
||||
if (!isset($frameworkConfiguration['persistence']['storagePid'])) {
|
||||
$frameworkConfiguration['persistence']['storagePid'] = 0;
|
||||
}
|
||||
// only merge $configuration and override controller configuration when retrieving configuration of the current plugin
|
||||
if ($extensionName === null || $extensionName === $extensionNameFromConfig && $pluginName === $pluginNameFromConfig) {
|
||||
$pluginConfiguration = $this->getPluginConfiguration($request, (string)$extensionNameFromConfig, (string)$pluginNameFromConfig);
|
||||
ArrayUtility::mergeRecursiveWithOverrule($pluginConfiguration, $configuration);
|
||||
$pluginConfiguration['controllerConfiguration'] = $this->getControllerConfiguration((string)$extensionNameFromConfig, (string)$pluginNameFromConfig);
|
||||
} else {
|
||||
$pluginConfiguration = $this->getPluginConfiguration($request, $extensionName, (string)$pluginName);
|
||||
$pluginConfiguration['controllerConfiguration'] = $this->getControllerConfiguration($extensionName, (string)$pluginName);
|
||||
}
|
||||
ArrayUtility::mergeRecursiveWithOverrule($frameworkConfiguration, $pluginConfiguration);
|
||||
// only load context specific configuration when retrieving configuration of the current plugin
|
||||
if ($extensionName === null || $extensionName === $extensionNameFromConfig && $pluginName === $pluginNameFromConfig) {
|
||||
$frameworkConfiguration = $this->getContextSpecificFrameworkConfiguration($request, $frameworkConfiguration);
|
||||
}
|
||||
|
||||
if (!empty($frameworkConfiguration['persistence']['storagePid'])) {
|
||||
if (is_array($frameworkConfiguration['persistence']['storagePid'])) {
|
||||
$conf = $this->typoScriptService->convertPlainArrayToTypoScriptArray($frameworkConfiguration['persistence']);
|
||||
$contentObjectRenderer = GeneralUtility::makeInstance(ContentObjectRenderer::class);
|
||||
$contentObjectRenderer->setRequest($request);
|
||||
$contentObjectRenderer->start($request->getAttribute('frontend.page.information')->getPageRecord(), 'pages');
|
||||
$frameworkConfiguration['persistence']['storagePid'] = $contentObjectRenderer->stdWrapValue('storagePid', $conf);
|
||||
}
|
||||
if (!empty($frameworkConfiguration['persistence']['recursive'])) {
|
||||
$storagePids = $this->getRecursiveStoragePids(
|
||||
GeneralUtility::intExplode(',', (string)($frameworkConfiguration['persistence']['storagePid'] ?? '')),
|
||||
(int)$frameworkConfiguration['persistence']['recursive']
|
||||
);
|
||||
$frameworkConfiguration['persistence']['storagePid'] = implode(',', $storagePids);
|
||||
}
|
||||
}
|
||||
return $frameworkConfiguration;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns full Frontend TypoScript setup array calculated by FE middlewares.
|
||||
*/
|
||||
public function getTypoScriptSetup(ServerRequestInterface $request): array
|
||||
{
|
||||
$frontendTypoScript = $request->getAttribute('frontend.typoscript');
|
||||
if (!($frontendTypoScript instanceof FrontendTypoScript)) {
|
||||
throw new \RuntimeException(
|
||||
'Setup array has not been initialized. This happens in cached Frontend scope where full TypoScript'
|
||||
. ' is not needed by the system.',
|
||||
1700841298
|
||||
);
|
||||
}
|
||||
return $frontendTypoScript->getSetupArray();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the TypoScript configuration found in config.tx_extbase
|
||||
*/
|
||||
private function getExtbaseConfiguration(ServerRequestInterface $request): array
|
||||
{
|
||||
$setup = $this->getTypoScriptSetup($request);
|
||||
$extbaseConfiguration = [];
|
||||
if (isset($setup['config.']['tx_extbase.'])) {
|
||||
$extbaseConfiguration = $this->typoScriptService->convertTypoScriptArrayToPlainArray($setup['config.']['tx_extbase.']);
|
||||
}
|
||||
return $extbaseConfiguration;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the TypoScript configuration found in plugin.tx_yourextension_yourplugin
|
||||
* merged with the global configuration of your extension from plugin.tx_yourextension
|
||||
*
|
||||
* @param string|null $pluginName in FE mode this is the specified plugin name
|
||||
*/
|
||||
private function getPluginConfiguration(ServerRequestInterface $request, string $extensionName, ?string $pluginName = null): array
|
||||
{
|
||||
$setup = $this->getTypoScriptSetup($request);
|
||||
$pluginConfiguration = [];
|
||||
if (isset($setup['plugin.']['tx_' . strtolower($extensionName) . '.']) && is_array($setup['plugin.']['tx_' . strtolower($extensionName) . '.'])) {
|
||||
$pluginConfiguration = $this->typoScriptService->convertTypoScriptArrayToPlainArray($setup['plugin.']['tx_' . strtolower($extensionName) . '.']);
|
||||
}
|
||||
if ($pluginName !== null) {
|
||||
$pluginSignature = strtolower($extensionName . '_' . $pluginName);
|
||||
if (isset($setup['plugin.']['tx_' . $pluginSignature . '.']) && is_array($setup['plugin.']['tx_' . $pluginSignature . '.'])) {
|
||||
ArrayUtility::mergeRecursiveWithOverrule(
|
||||
$pluginConfiguration,
|
||||
$this->typoScriptService->convertTypoScriptArrayToPlainArray($setup['plugin.']['tx_' . $pluginSignature . '.'])
|
||||
);
|
||||
}
|
||||
}
|
||||
return $pluginConfiguration;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the configured controller/action configuration of the specified plugin in the format
|
||||
* array(
|
||||
* 'Controller1' => array('action1', 'action2'),
|
||||
* 'Controller2' => array('action3', 'action4')
|
||||
* )
|
||||
*
|
||||
* @param string $pluginName in FE mode this is the specified plugin name
|
||||
*/
|
||||
private function getControllerConfiguration(string $extensionName, string $pluginName): array
|
||||
{
|
||||
$controllerConfiguration = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['extbase']['extensions'][$extensionName]['plugins'][$pluginName]['controllers'] ?? [];
|
||||
if (!is_array($controllerConfiguration)) {
|
||||
$controllerConfiguration = [];
|
||||
}
|
||||
return $controllerConfiguration;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get context specific framework configuration.
|
||||
* - Overrides storage PID with setting "Startingpoint"
|
||||
* - merge flexForm configuration, if needed
|
||||
*
|
||||
* @param array $frameworkConfiguration The framework configuration to modify
|
||||
* @return array the modified framework configuration
|
||||
*/
|
||||
private function getContextSpecificFrameworkConfiguration(ServerRequestInterface $request, array $frameworkConfiguration): array
|
||||
{
|
||||
$frameworkConfiguration = $this->overrideStoragePidIfStartingPointIsSet($request, $frameworkConfiguration);
|
||||
$frameworkConfiguration = $this->overrideConfigurationFromPlugin($request, $frameworkConfiguration);
|
||||
return $this->overrideConfigurationFromFlexForm($request, $frameworkConfiguration);
|
||||
}
|
||||
|
||||
/**
|
||||
* Overrides the storage PID settings, in case the "Startingpoint" settings
|
||||
* is set in the plugin configuration.
|
||||
*
|
||||
* @param array $frameworkConfiguration the framework configurations
|
||||
* @return array the framework configuration with overridden storagePid
|
||||
*/
|
||||
private function overrideStoragePidIfStartingPointIsSet(ServerRequestInterface $request, array $frameworkConfiguration): array
|
||||
{
|
||||
$contentObject = $request->getAttribute('currentContentObject');
|
||||
$pages = (string)($contentObject?->data['pages'] ?? '');
|
||||
if ($pages !== '') {
|
||||
$storagePids = GeneralUtility::intExplode(',', $pages, true);
|
||||
$recursionDepth = (int)($contentObject?->data['recursive'] ?? 0);
|
||||
$recursiveStoragePids = $this->pageRepository->getPageIdsRecursive($storagePids, $recursionDepth);
|
||||
$pages = implode(',', $recursiveStoragePids);
|
||||
ArrayUtility::mergeRecursiveWithOverrule($frameworkConfiguration, [
|
||||
'persistence' => [
|
||||
'storagePid' => $pages,
|
||||
],
|
||||
]);
|
||||
}
|
||||
return $frameworkConfiguration;
|
||||
}
|
||||
|
||||
/**
|
||||
* Overrides configuration settings from the plugin typoscript (plugin.tx_myext_pi1.)
|
||||
*
|
||||
* @param array $frameworkConfiguration the framework configuration
|
||||
* @return array the framework configuration with overridden data from typoscript
|
||||
*/
|
||||
private function overrideConfigurationFromPlugin(ServerRequestInterface $request, array $frameworkConfiguration): array
|
||||
{
|
||||
if (!isset($frameworkConfiguration['extensionName']) || !isset($frameworkConfiguration['pluginName'])) {
|
||||
return $frameworkConfiguration;
|
||||
}
|
||||
|
||||
$setup = $this->getTypoScriptSetup($request);
|
||||
$pluginSignature = strtolower($frameworkConfiguration['extensionName'] . '_' . $frameworkConfiguration['pluginName']);
|
||||
$pluginConfiguration = $setup['plugin.']['tx_' . $pluginSignature . '.'] ?? null;
|
||||
if (is_array($pluginConfiguration)) {
|
||||
$pluginConfiguration = $this->typoScriptService->convertTypoScriptArrayToPlainArray($pluginConfiguration);
|
||||
$frameworkConfiguration = $this->mergeConfigurationIntoFrameworkConfiguration($frameworkConfiguration, $pluginConfiguration, 'settings');
|
||||
$frameworkConfiguration = $this->mergeConfigurationIntoFrameworkConfiguration($frameworkConfiguration, $pluginConfiguration, 'persistence');
|
||||
$frameworkConfiguration = $this->mergeConfigurationIntoFrameworkConfiguration($frameworkConfiguration, $pluginConfiguration, 'view');
|
||||
}
|
||||
return $frameworkConfiguration;
|
||||
}
|
||||
|
||||
/**
|
||||
* Overrides configuration settings from flexForms. This merges the whole flexForm data.
|
||||
*
|
||||
* @param array $frameworkConfiguration the framework configuration
|
||||
* @return array the framework configuration with overridden data from flexForm
|
||||
*/
|
||||
private function overrideConfigurationFromFlexForm(ServerRequestInterface $request, array $frameworkConfiguration): array
|
||||
{
|
||||
$contentObject = $request->getAttribute('currentContentObject');
|
||||
$flexFormConfiguration = $contentObject?->data['pi_flexform'] ?? [];
|
||||
if (is_string($flexFormConfiguration)) {
|
||||
if ($flexFormConfiguration !== '') {
|
||||
$flexFormConfiguration = $this->flexFormTools->convertFlexFormContentToArray($flexFormConfiguration);
|
||||
} else {
|
||||
$flexFormConfiguration = [];
|
||||
}
|
||||
}
|
||||
|
||||
// Early return, if flexForm configuration is empty
|
||||
if (!is_array($flexFormConfiguration) || empty($flexFormConfiguration)) {
|
||||
return $frameworkConfiguration;
|
||||
}
|
||||
|
||||
// Remove flexForm settings if empty for fields defined in `ignoreFlexFormSettingsIfEmpty`
|
||||
$originalFlexFormConfiguration = $flexFormConfiguration;
|
||||
$ignoredSettingsConfig = (string)($frameworkConfiguration['ignoreFlexFormSettingsIfEmpty'] ?? '');
|
||||
if ($ignoredSettingsConfig !== '') {
|
||||
$ignoredSettings = GeneralUtility::trimExplode(',', $ignoredSettingsConfig, true);
|
||||
$flexFormConfiguration = $this->removeIgnoredFlexFormSettingsIfEmpty($flexFormConfiguration, $ignoredSettings);
|
||||
}
|
||||
|
||||
// PSR-14 event for extension authors to modify flexForm configuration before the merge process
|
||||
$event = new BeforeFlexFormConfigurationOverrideEvent($frameworkConfiguration, $originalFlexFormConfiguration, $flexFormConfiguration);
|
||||
$this->eventDispatcher->dispatch($event);
|
||||
$flexFormConfiguration = $event->getFlexFormConfiguration();
|
||||
|
||||
$frameworkConfiguration = $this->mergeConfigurationIntoFrameworkConfiguration($frameworkConfiguration, $flexFormConfiguration, 'settings');
|
||||
$frameworkConfiguration = $this->mergeConfigurationIntoFrameworkConfiguration($frameworkConfiguration, $flexFormConfiguration, 'persistence');
|
||||
return $this->mergeConfigurationIntoFrameworkConfiguration($frameworkConfiguration, $flexFormConfiguration, 'view');
|
||||
}
|
||||
|
||||
/**
|
||||
* Merge a configuration into the framework configuration.
|
||||
*
|
||||
* @param array $frameworkConfiguration the framework configuration to merge the data on
|
||||
* @param array $configuration The configuration
|
||||
* @param string $configurationPartName The name of the configuration part which should be merged.
|
||||
* @return array the processed framework configuration
|
||||
*/
|
||||
private function mergeConfigurationIntoFrameworkConfiguration(array $frameworkConfiguration, array $configuration, string $configurationPartName): array
|
||||
{
|
||||
if (isset($configuration[$configurationPartName]) && is_array($configuration[$configurationPartName])) {
|
||||
if (isset($frameworkConfiguration[$configurationPartName]) && is_array($frameworkConfiguration[$configurationPartName])) {
|
||||
ArrayUtility::mergeRecursiveWithOverrule($frameworkConfiguration[$configurationPartName], $configuration[$configurationPartName]);
|
||||
} else {
|
||||
$frameworkConfiguration[$configurationPartName] = $configuration[$configurationPartName];
|
||||
}
|
||||
}
|
||||
return $frameworkConfiguration;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a comma separated list of storagePid that are below a certain storage pid.
|
||||
*
|
||||
* @param array|int[] $storagePids Storage PIDs to start at; multiple PIDs possible as comma-separated list
|
||||
* @param int $recursionDepth Maximum number of levels to search, 0 to disable recursive lookup
|
||||
* @return int[] storage PIDs
|
||||
*/
|
||||
private function getRecursiveStoragePids(array $storagePids, int $recursionDepth = 0): array
|
||||
{
|
||||
return $this->pageRepository->getPageIdsRecursive($storagePids, $recursionDepth);
|
||||
}
|
||||
|
||||
private function removeIgnoredFlexFormSettingsIfEmpty(array $flexFormConfiguration, array $ignoredSettings): array
|
||||
{
|
||||
foreach ($ignoredSettings as $ignoredSetting) {
|
||||
$ignoredSettingName = 'settings.' . $ignoredSetting;
|
||||
if (!ArrayUtility::isValidPath($flexFormConfiguration, $ignoredSettingName, '.')) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$fieldValue = ArrayUtility::getValueByPath($flexFormConfiguration, $ignoredSettingName, '.');
|
||||
if ($fieldValue === '' || $fieldValue === '0') {
|
||||
$flexFormConfiguration = ArrayUtility::removeByPath($flexFormConfiguration, $ignoredSettingName, '.');
|
||||
}
|
||||
}
|
||||
|
||||
return $flexFormConfiguration;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user