protected static function filterRequest(Request $request, $filters)
    {
        $tmp = [];

        foreach ($filters as $filter) {
            $tmp[] = $filter;
        }

        $filter = new \Doozr_Filter($tmp);

        return $request->withUri(
            $request->getUri()->withPath(
                $filter->apply($request->getUri()->getPath())
            )
        );
    }
protected static function filterRequest(Request $request, $filters)
    {
        $tmp = [];

        foreach ($filters as $filter) {
            $tmp[] = $filter;
        }

        $filter = new \Doozr_Filter($tmp);

        return $request->withUri(
            $request->getUri()->withPath(
                $filter->apply($request->getUri()->getPath())
            )
        );
    }
protected static function filterRequest ( Request $ request , $ filters ) { $ tmp = [ ] ; foreach ( $ filters as $ filter ) { $ tmp [ ] = $ filter ; } $ filter = new \ Doozr_Filter ( $ tmp ) ; return $ request -> withUri ( $ request -> getUri ( ) -> withPath ( $ filter -> apply ( $ request -> getUri ( ) -> getPath ( ) ) ) ) ; }
Filters the request base URI to filter development and debugging stuff.

@param Request         $request Request to be filtered
@param array|\stdClass $filters ArrayAccess filters

@author Benjamin Carl <opensource@clickalicious.de>

@return Request Filtered and prepared request instance
@static
Filters the request base URI to filter development and debugging stuff .