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
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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