blob: 6eab6e6d359e61ea9639d860279ada37fd6a1bfc [file] [log] [blame]
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02001<?php
2
3namespace Illuminate\Contracts\Http;
4
5interface Kernel
6{
7 /**
8 * Bootstrap the application for HTTP requests.
9 *
10 * @return void
11 */
12 public function bootstrap();
13
14 /**
15 * Handle an incoming HTTP request.
16 *
17 * @param \Symfony\Component\HttpFoundation\Request $request
18 * @return \Symfony\Component\HttpFoundation\Response
19 */
20 public function handle($request);
21
22 /**
23 * Perform any final actions for the request lifecycle.
24 *
25 * @param \Symfony\Component\HttpFoundation\Request $request
26 * @param \Symfony\Component\HttpFoundation\Response $response
27 * @return void
28 */
29 public function terminate($request, $response);
30
31 /**
32 * Get the Laravel application instance.
33 *
34 * @return \Illuminate\Contracts\Foundation\Application
35 */
36 public function getApplication();
37}