public function parse($source)
    {
        $resolver = new RefResolver();

        if ($this->connection !== null) {
            $resolver->addResolver('schema', new Resolver($this->connection));
        }

        $parser = new JsonSchema(null, $resolver);
        $schema = $parser->parse($source);

        return Service\Schema::serializeCache($schema);
    }
public function parse($source)
    {
        $resolver = new RefResolver();

        if ($this->connection !== null) {
            $resolver->addResolver('schema', new Resolver($this->connection));
        }

        $parser = new JsonSchema(null, $resolver);
        $schema = $parser->parse($source);

        return Service\Schema::serializeCache($schema);
    }
public function parse ( $ source ) { $ resolver = new RefResolver ( ) ; if ( $ this -> connection !== null ) { $ resolver -> addResolver ( 'schema' , new Resolver ( $ this -> connection ) ) ; } $ parser = new JsonSchema ( null , $ resolver ) ; $ schema = $ parser -> parse ( $ source ) ; return Service \ Schema :: serializeCache ( $ schema ) ; }
Parses and resolves the json schema source and returns the object
presentation of the schema

@param string $source
@return string
Parses and resolves the json schema source and returns the object presentation of the schema