public static function getFinder(Request $request, $contentPath)
    {
        $requestUri = $request->getPathInfo();
        //Reject paths with . and ?
        if(false !== (strpos($requestUri, '.') || strpos($requestUri, '?')))
        {
            return false;
        }

        if($requestUri == '/')
        {
            return new Finder($contentPath);
        }

        return new Finder($contentPath . $requestUri);
    }
public static function getFinder(Request $request, $contentPath)
    {
        $requestUri = $request->getPathInfo();
        //Reject paths with . and ?
        if(false !== (strpos($requestUri, '.') || strpos($requestUri, '?')))
        {
            return false;
        }

        if($requestUri == '/')
        {
            return new Finder($contentPath);
        }

        return new Finder($contentPath . $requestUri);
    }
public static function getFinder ( Request $ request , $ contentPath ) { $ requestUri = $ request -> getPathInfo ( ) ; //Reject paths with . and ? if ( false !== ( strpos ( $ requestUri , '.' ) || strpos ( $ requestUri , '?' ) ) ) { return false ; } if ( $ requestUri == '/' ) { return new Finder ( $ contentPath ) ; } return new Finder ( $ contentPath . $ requestUri ) ; }
Get property file name from request uri and base content path

@param  Request $request     Request
@param  string  $contentPath Root content path
@return boolean              True if property file exists
Get property file name from request uri and base content path