accepts($type)) { throw new NotAcceptableHttpException(); } return $next($request); } }