httpKernel = $http_kernel; } /** * {@inheritdoc} */ public function handle(Request $request, $type = self::MASTER_REQUEST, $catch = TRUE) { if ($request->getClientIp() == '127.0.0.10') { return new Response($this->t('Bye!'), 403); } return $this->httpKernel->handle($request, $type, $catch); } }