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())
            )
        );
    }