src/Graviton/ProxyBundle/Service/ApiDefinitionLoader.php
private function loadApiDefinition($forceReload = false)
    {
        $definitionLoader = $this->getDefinitionLoader();

        $supported = $definitionLoader->supports($this->options['uri']);

        if ($forceReload || ($this->definition == null && $supported)) {
            $this->definition = $definitionLoader->load($this->options['uri']);
        } elseif (!$supported) {
            throw new \RuntimeException("This resource (".$this->options['uri'].") is not supported.");
        }
    }
private function loadApiDefinition($forceReload = false)
    {
        $definitionLoader = $this->getDefinitionLoader();

        $supported = $definitionLoader->supports($this->options['uri']);

        if ($forceReload || ($this->definition == null && $supported)) {
            $this->definition = $definitionLoader->load($this->options['uri']);
        } elseif (!$supported) {
            throw new \RuntimeException("This resource (".$this->options['uri'].") is not supported.");
        }
    }
private function loadApiDefinition ( $ forceReload = false ) { $ definitionLoader = $ this -> getDefinitionLoader ( ) ; $ supported = $ definitionLoader -> supports ( $ this -> options [ 'uri' ] ) ; if ( $ forceReload || ( $ this -> definition == null && $ supported ) ) { $ this -> definition = $ definitionLoader -> load ( $ this -> options [ 'uri' ] ) ; } elseif ( ! $ supported ) { throw new \ RuntimeException ( "This resource (" . $ this -> options [ 'uri' ] . ") is not supported." ) ; } }
internal load method

@param bool $forceReload Switch to force a new api definition object will be provided.

@return void
internal load method