ResourceLocator/src/UniformResourceLocator.php
public function mergeResources(array $uris, $absolute = true, $all = false)
    {
        $uris = array_unique($uris);

        $lists = [[]];
        foreach ($uris as $uri) {
            $lists[] = $this->findResources($uri, $absolute, $all);
        }

        // TODO: In PHP 5.6+ use array_merge(...$list);
        return call_user_func_array('array_merge', $lists);
    }
public function mergeResources(array $uris, $absolute = true, $all = false)
    {
        $uris = array_unique($uris);

        $lists = [[]];
        foreach ($uris as $uri) {
            $lists[] = $this->findResources($uri, $absolute, $all);
        }

        // TODO: In PHP 5.6+ use array_merge(...$list);
        return call_user_func_array('array_merge', $lists);
    }
public function mergeResources ( array $ uris , $ absolute = true , $ all = false ) { $ uris = array_unique ( $ uris ) ; $ lists = [ [ ] ] ; foreach ( $ uris as $ uri ) { $ lists [ ] = $ this -> findResources ( $ uri , $ absolute , $ all ) ; } // TODO: In PHP 5.6+ use array_merge(...$list); return call_user_func_array ( 'array_merge' , $ lists ) ; }
Find all instances from a list of resources.

@param  array  $uris     Input URIs to be searched.
@param  bool   $absolute Whether to return absolute path.
@param  bool   $all      Whether to return all paths even if they don't exist.
@throws \BadMethodCallException
@return array
Find all instances from a list of resources .