ConfigurationSchemaValidator
class ConfigurationSchemaValidator (View source)
A validator for all configuration entries using Schema
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
Properties
protected ConfigurationManager | $configurationManager | ||
protected PackageManager | $packageManager | ||
protected SchemaValidator | $schemaValidator |
Methods
validate(string $configurationType = null, string $path = null, array $loadedSchemaFiles = [])
Validate the given $configurationType and $path
validateSingleType(string $configurationType, string $path = null, array $loadedSchemaFiles = [])
Validate a single configuration type
Details
Result
validate(string $configurationType = null, string $path = null, array $loadedSchemaFiles = [])
Validate the given $configurationType and $path
protected Result
validateSingleType(string $configurationType, string $path = null, array $loadedSchemaFiles = [])
Validate a single configuration type