public function initialize(stdClass $schema, Uri $uri)
    {
        $this->registerSchema($schema, $uri);
        $this->stack = [[$uri, $schema]];
    }
public function initialize(stdClass $schema, Uri $uri)
    {
        $this->registerSchema($schema, $uri);
        $this->stack = [[$uri, $schema]];
    }
public function initialize ( stdClass $ schema , Uri $ uri ) { $ this -> registerSchema ( $ schema , $ uri ) ; $ this -> stack = [ [ $ uri , $ schema ] ] ; }
Initializes the resolver with a root schema, on which resolutions will be based.

@param stdClass $schema
@param Uri      $uri
Initializes the resolver with a root schema on which resolutions will be based .