protected function filterRequestMethod(Request $req)
    {
        $method = strtoupper($req->getMethod());

        if ($method != 'POST') {
            return $req;
        }

        $params = $req->getParsedBody();

        if (isset($params['_method'])) {
            $req = $req->withMethod($params['_method']);
        }

        return $req;
    }