PHP Класс 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
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$configurationManager ConfigurationManager
$packageManager Neos\Flow\Package\PackageManagerInterface
$schemaValidator Neos\Utility\SchemaValidator

Открытые методы

Метод Описание
validate ( string $configurationType = null, string $path = null, array &$loadedSchemaFiles = [] ) : Neos\Error\Messages\Result Validate the given $configurationType and $path

Защищенные методы

Метод Описание
validateSingleType ( string $configurationType, string $path, array &$loadedSchemaFiles ) : Neos\Error\Messages\Result Validate a single configuration type

Описание методов

validate() публичный Метод

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
Результат Neos\Error\Messages\Result the result of the validation

validateSingleType() защищенный Метод

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
Результат Neos\Error\Messages\Result

Описание свойств

$configurationManager защищенное свойство

protected ConfigurationManager,Neos\Flow\Configuration $configurationManager
Результат ConfigurationManager

$packageManager защищенное свойство

protected PackageManagerInterface,Neos\Flow\Package $packageManager
Результат Neos\Flow\Package\PackageManagerInterface

$schemaValidator защищенное свойство

protected SchemaValidator,Neos\Utility $schemaValidator
Результат Neos\Utility\SchemaValidator