public function hasPath($name)
    {
        Deprecated::method(3.3, PathResolver::class);

        if (strpos($name, '/') !== false) {
            $parts = explode('/', $name);
            $name = array_shift($parts);
        }

        return array_key_exists($name, $this->paths) || array_key_exists($name . 'path', $this->paths);
    }
public function hasPath($name)
    {
        Deprecated::method(3.3, PathResolver::class);

        if (strpos($name, '/') !== false) {
            $parts = explode('/', $name);
            $name = array_shift($parts);
        }

        return array_key_exists($name, $this->paths) || array_key_exists($name . 'path', $this->paths);
    }
public function hasPath ( $ name ) { Deprecated :: method ( 3.3 , PathResolver :: class ) ; if ( strpos ( $ name , '/' ) !== false ) { $ parts = explode ( '/' , $ name ) ; $ name = array_shift ( $ parts ) ; } return array_key_exists ( $ name , $ this -> paths ) || array_key_exists ( $ name . 'path' , $ this -> paths ) ; }
Checks if the given name has a path associated with it.

@param string $name of path

@return bool
Checks if the given name has a path associated with it .