PHP Class Neos\Flow\Configuration\ConfigurationSchemaValidator

Writing Custom Schemata ======================= The schemas are searched in the path "Resources/Private/Schema" of all active packages. The schema-filenames must match the pattern [type].[path].schema.yaml. The type and/or the path can also be expressed as subdirectories of Resources/Private/Schema. So Settings/Neos/Flow.persistence.schema.yaml will match the same paths like Settings.Neos.Flow.persistence.schema.yaml or Settings/Neos.Flow/persistence.schema.yaml
Datei anzeigen Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$configurationManager ConfigurationManager
$packageManager Neos\Flow\Package\PackageManagerInterface
$schemaValidator Neos\Utility\SchemaValidator

Public Methods

Method Description
validate ( string $configurationType = null, string $path = null, array &$loadedSchemaFiles = [] ) : Neos\Error\Messages\Result Validate the given $configurationType and $path

Protected Methods

Method Description
validateSingleType ( string $configurationType, string $path, array &$loadedSchemaFiles ) : Neos\Error\Messages\Result Validate a single configuration type

Method Details

validate() public method

Validate the given $configurationType and $path
public validate ( string $configurationType = null, string $path = null, array &$loadedSchemaFiles = [] ) : Neos\Error\Messages\Result
$configurationType string (optional) the configuration type to validate. if NULL, validates all configuration.
$path string (optional) configuration path to validate
$loadedSchemaFiles array (optional). if given, will be filled with a list of loaded schema files
return Neos\Error\Messages\Result the result of the validation

validateSingleType() protected method

Validate a single configuration type
protected validateSingleType ( string $configurationType, string $path, array &$loadedSchemaFiles ) : Neos\Error\Messages\Result
$configurationType string the configuration typr to validate
$path string configuration path to validate, or NULL.
$loadedSchemaFiles array will be filled with a list of loaded schema files
return Neos\Error\Messages\Result

Property Details

$configurationManager protected_oe property

protected ConfigurationManager,Neos\Flow\Configuration $configurationManager
return ConfigurationManager

$packageManager protected_oe property

protected PackageManagerInterface,Neos\Flow\Package $packageManager
return Neos\Flow\Package\PackageManagerInterface

$schemaValidator protected_oe property

protected SchemaValidator,Neos\Utility $schemaValidator
return Neos\Utility\SchemaValidator