Neos\Flow\Configuration\ConfigurationManager::registerConfigurationType PHP Method

registerConfigurationType() public method

The processing type must be supported by the ConfigurationManager, see CONFIGURATION_PROCESSING_TYPE_* for what is available.
public registerConfigurationType ( string $configurationType, string $configurationProcessingType = self::CONFIGURATION_PROCESSING_TYPE_DEFAULT, boolean $allowSplitSource = false ) : void
$configurationType string The type to register, may be anything
$configurationProcessingType string One of CONFIGURATION_PROCESSING_TYPE_*, defaults to CONFIGURATION_PROCESSING_TYPE_DEFAULT
$allowSplitSource boolean If TRUE, the type will be used as a "prefix" when looking for split configuration. Only supported for DEFAULT and SETTINGS processing types!
return void
    public function registerConfigurationType($configurationType, $configurationProcessingType = self::CONFIGURATION_PROCESSING_TYPE_DEFAULT, $allowSplitSource = false)
    {
        $configurationProcessingTypes = [self::CONFIGURATION_PROCESSING_TYPE_DEFAULT, self::CONFIGURATION_PROCESSING_TYPE_OBJECTS, self::CONFIGURATION_PROCESSING_TYPE_POLICY, self::CONFIGURATION_PROCESSING_TYPE_ROUTES, self::CONFIGURATION_PROCESSING_TYPE_SETTINGS, self::CONFIGURATION_PROCESSING_TYPE_APPEND];
        if (!in_array($configurationProcessingType, $configurationProcessingTypes)) {
            throw new \InvalidArgumentException(sprintf('Specified invalid configuration processing type "%s" while registering custom configuration type "%s"', $configurationProcessingType, $configurationType), 1365496111);
        }
        $this->configurationTypes[$configurationType] = ['processingType' => $configurationProcessingType, 'allowSplitSource' => $allowSplitSource];
    }