src/LdapTools/Schema/Parser/SchemaYamlParser.php
protected function parseSchemaNameToArray($schemaName)
    {
        if (!isset($this->schemas[$this->schemaFolder][$schemaName])) {
            $file = $this->getSchemaFileName($this->schemaFolder, $schemaName);
            try {
                $this->schemas[$this->schemaFolder][$schemaName] = Yaml::parse(file_get_contents($file));
            } catch (ParseException $e) {
                throw new SchemaParserException(sprintf('Error in configuration file: %s', $e->getMessage()));
            }
            $this->mergeDefaultSchemaFile($schemaName);
            $this->mergeIncludedSchemas($schemaName);
            $this->validateSchemaDirectives($schemaName);
        }
    }
protected function parseSchemaNameToArray($schemaName)
    {
        if (!isset($this->schemas[$this->schemaFolder][$schemaName])) {
            $file = $this->getSchemaFileName($this->schemaFolder, $schemaName);
            try {
                $this->schemas[$this->schemaFolder][$schemaName] = Yaml::parse(file_get_contents($file));
            } catch (ParseException $e) {
                throw new SchemaParserException(sprintf('Error in configuration file: %s', $e->getMessage()));
            }
            $this->mergeDefaultSchemaFile($schemaName);
            $this->mergeIncludedSchemas($schemaName);
            $this->validateSchemaDirectives($schemaName);
        }
    }
protected function parseSchemaNameToArray ( $ schemaName ) { if ( ! isset ( $ this -> schemas [ $ this -> schemaFolder ] [ $ schemaName ] ) ) { $ file = $ this -> getSchemaFileName ( $ this -> schemaFolder , $ schemaName ) ; try { $ this -> schemas [ $ this -> schemaFolder ] [ $ schemaName ] = Yaml :: parse ( file_get_contents ( $ file ) ) ; } catch ( ParseException $ e ) { throw new SchemaParserException ( sprintf ( 'Error in configuration file: %s' , $ e -> getMessage ( ) ) ) ; } $ this -> mergeDefaultSchemaFile ( $ schemaName ) ; $ this -> mergeIncludedSchemas ( $ schemaName ) ; $ this -> validateSchemaDirectives ( $ schemaName ) ; } }
Given a schema name, parse it into the array.

@param string $schemaName
@throws SchemaParserException
Given a schema name parse it into the array .