src/Graviton/ProxyBundle/Definition/Loader/DispersalStrategy/SwaggerStrategy.php
private function registerHost(ApiDefinition $apiDef)
    {
        try {
            $host = $this->document->getHost();
        } catch (MissingDocumentPropertyException $e) {
            $host = $this->fallbackData['host'];
        }
        $apiDef->setHost($host);
    }
private function registerHost(ApiDefinition $apiDef)
    {
        try {
            $host = $this->document->getHost();
        } catch (MissingDocumentPropertyException $e) {
            $host = $this->fallbackData['host'];
        }
        $apiDef->setHost($host);
    }
private function registerHost ( ApiDefinition $ apiDef ) { try { $ host = $ this -> document -> getHost ( ) ; } catch ( MissingDocumentPropertyException $ e ) { $ host = $ this -> fallbackData [ 'host' ] ; } $ apiDef -> setHost ( $ host ) ; }
Sets the destination host for the api definition.

@param ApiDefinition $apiDef Configuration for the swagger api to be recognized.

@return void
Sets the destination host for the api definition .