public function createPathInformation($streamUrl)
    {
        $pathInfo     = $this->parsePath($streamUrl);
        $repository   = $this->getRepository($pathInfo);
        $ref          = isset($pathInfo['fragment']) ? $pathInfo['fragment'] : 'HEAD';

        $arguments  = array();
        if (isset($pathInfo['query'])) {
            parse_str($pathInfo['query'], $arguments);
        }

        $fullPath   = $repository->resolveFullPath($pathInfo['path']);
        $url        =  $this->protocol.'://'.$fullPath
                      .'#'.$ref
                      .'?'.http_build_query($arguments);

        return new PathInformation($repository, $url, $fullPath, $ref, $arguments);
    }
public function createPathInformation($streamUrl)
    {
        $pathInfo     = $this->parsePath($streamUrl);
        $repository   = $this->getRepository($pathInfo);
        $ref          = isset($pathInfo['fragment']) ? $pathInfo['fragment'] : 'HEAD';

        $arguments  = array();
        if (isset($pathInfo['query'])) {
            parse_str($pathInfo['query'], $arguments);
        }

        $fullPath   = $repository->resolveFullPath($pathInfo['path']);
        $url        =  $this->protocol.'://'.$fullPath
                      .'#'.$ref
                      .'?'.http_build_query($arguments);

        return new PathInformation($repository, $url, $fullPath, $ref, $arguments);
    }
public function createPathInformation ( $ streamUrl ) { $ pathInfo = $ this -> parsePath ( $ streamUrl ) ; $ repository = $ this -> getRepository ( $ pathInfo ) ; $ ref = isset ( $ pathInfo [ 'fragment' ] ) ? $ pathInfo [ 'fragment' ] : 'HEAD' ; $ arguments = array ( ) ; if ( isset ( $ pathInfo [ 'query' ] ) ) { parse_str ( $ pathInfo [ 'query' ] , $ arguments ) ; } $ fullPath = $ repository -> resolveFullPath ( $ pathInfo [ 'path' ] ) ; $ url = $ this -> protocol . '://' . $ fullPath . '#' . $ ref . '?' . http_build_query ( $ arguments ) ; return new PathInformation ( $ repository , $ url , $ fullPath , $ ref , $ arguments ) ; }
Returns the path information for a given stream URL

@param   string  $streamUrl      The URL given to the stream function
@return  PathInformation         The path information representing the stream URL
Returns the path information for a given stream URL