enableHttpMethodParameterOverride(); $kernel = new AppKernel('dev', true); $response = $kernel->handle($request); $response->send(); $kernel->terminate($request, $response);