public function registerConfigurationType(string $configurationType, string $configurationProcessingType = self::CONFIGURATION_PROCESSING_TYPE_DEFAULT, bool $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];
    }
public function registerConfigurationType(string $configurationType, string $configurationProcessingType = self::CONFIGURATION_PROCESSING_TYPE_DEFAULT, bool $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];
    }
public function registerConfigurationType ( string $ configurationType , string $ configurationProcessingType = self :: CONFIGURATION_PROCESSING_TYPE_DEFAULT , bool $ 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 ] ; }
Registers a new configuration type with the given configuration processing type.

The processing type must be supported by the ConfigurationManager, see
CONFIGURATION_PROCESSING_TYPE_* for what is available.

@param string $configurationType The type to register, may be anything
@param string $configurationProcessingType One of CONFIGURATION_PROCESSING_TYPE_*, defaults to CONFIGURATION_PROCESSING_TYPE_DEFAULT
@param boolean $allowSplitSource If true, the type will be used as a "prefix" when looking for split configuration. Only supported for DEFAULT and SETTINGS processing types!
@throws \InvalidArgumentException on invalid configuration processing type
@return void
Registers a new configuration type with the given configuration processing type .