src/Graviton/CoreBundle/Event/HomepageRenderEvent.php
public function addRoute($url, $schemaUrl)
    {
        $this->addedRoutes[] = [
            '$ref' => $this->normalizeRelativeUrl($url),
            'profile' => $this->normalizeRelativeUrl($schemaUrl)
        ];
    }
public function addRoute($url, $schemaUrl)
    {
        $this->addedRoutes[] = [
            '$ref' => $this->normalizeRelativeUrl($url),
            'profile' => $this->normalizeRelativeUrl($schemaUrl)
        ];
    }
public function addRoute ( $ url , $ schemaUrl ) { $ this -> addedRoutes [ ] = [ '$ref' => $ this -> normalizeRelativeUrl ( $ url ) , 'profile' => $ this -> normalizeRelativeUrl ( $ schemaUrl ) ] ; }
add a route to the homepage

@param string $url       relative (to root) url to the service
@param string $schemaUrl relative (to root) url to the schema

@return void
add a route to the homepage