src/Graviton/GeneratorBundle/Definition/JsonDefinition.php
public function getRouterBase()
    {
        if ($this->def->getService() === null ||
            $this->def->getService()->getRouterBase() === null) {
            return false;
        }

        $routerBase = $this->def->getService()->getRouterBase();
        if (substr($routerBase, 0, 1) !== '/') {
            $routerBase = '/' . $routerBase;
        }
        if (substr($routerBase, -1) === '/') {
            $routerBase = substr($routerBase, 0, -1);
        }

        return $routerBase;
    }
public function getRouterBase()
    {
        if ($this->def->getService() === null ||
            $this->def->getService()->getRouterBase() === null) {
            return false;
        }

        $routerBase = $this->def->getService()->getRouterBase();
        if (substr($routerBase, 0, 1) !== '/') {
            $routerBase = '/' . $routerBase;
        }
        if (substr($routerBase, -1) === '/') {
            $routerBase = substr($routerBase, 0, -1);
        }

        return $routerBase;
    }
public function getRouterBase ( ) { if ( $ this -> def -> getService ( ) === null || $ this -> def -> getService ( ) -> getRouterBase ( ) === null ) { return false ; } $ routerBase = $ this -> def -> getService ( ) -> getRouterBase ( ) ; if ( substr ( $ routerBase , 0 , 1 ) !== '/' ) { $ routerBase = '/' . $ routerBase ; } if ( substr ( $ routerBase , - 1 ) === '/' ) { $ routerBase = substr ( $ routerBase , 0 , - 1 ) ; } return $ routerBase ; }
Returns a router base path. false if default should be used.

@return string router base, i.e. /bundle/name/
Returns a router base path . false if default should be used .