private function resolveName($name)
    {
        if ($name !== null) {
            return $name;
        }

        if (!isset($this->defaults['route'])) {
            throw new RouterException('Unable to make "self" url - default route was not defined.');
        }

        return $this->defaults['route'];
    }
private function resolveName($name)
    {
        if ($name !== null) {
            return $name;
        }

        if (!isset($this->defaults['route'])) {
            throw new RouterException('Unable to make "self" url - default route was not defined.');
        }

        return $this->defaults['route'];
    }
private function resolveName ( $ name ) { if ( $ name !== null ) { return $ name ; } if ( ! isset ( $ this -> defaults [ 'route' ] ) ) { throw new RouterException ( 'Unable to make "self" url - default route was not defined.' ) ; } return $ this -> defaults [ 'route' ] ; }
Resolves controller from passed value or from defaults

@param string $name

@return string
@throws RouterException
Resolves controller from passed value or from defaults