ResourceLocator/src/UniformResourceLocator.php
public function findResource($uri, $absolute = true, $first = false)
    {
        if (!\is_string($uri)) {
            throw new \BadMethodCallException('Invalid parameter $uri.');
        }
        return $this->findCached($uri, false, $absolute, $first);
    }
public function findResource($uri, $absolute = true, $first = false)
    {
        if (!\is_string($uri)) {
            throw new \BadMethodCallException('Invalid parameter $uri.');
        }
        return $this->findCached($uri, false, $absolute, $first);
    }
public function findResource ( $ uri , $ absolute = true , $ first = false ) { if ( ! \ is_string ( $ uri ) ) { throw new \ BadMethodCallException ( 'Invalid parameter $uri.' ) ; } return $ this -> findCached ( $ uri , false , $ absolute , $ first ) ; }
Find highest priority instance from a resource.

@param  string $uri      Input URI to be searched.
@param  bool   $absolute Whether to return absolute path.
@param  bool   $first    Whether to return first path even if it doesn't exist.
@throws \BadMethodCallException
@return string|bool
Find highest priority instance from a resource .