Kernel (Foundation\Http)

Kernel

class Kernel implements Kernel (View source)

Methods

void __construct(Application $app, Router $router)

Create a new HTTP kernel instance.

Response handle(Request $request)

Handle an incoming HTTP request.

void terminate(Request $request, Response $response)

Call the terminate method on any terminable middleware.

$this prependMiddleware(string $middleware)

Add a new middleware to beginning of the stack if it does not already exist.

$this pushMiddleware(string $middleware)

Add a new middleware to end of the stack if it does not already exist.

void bootstrap()

Bootstrap the application for HTTP requests.

bool hasMiddleware(string $middleware)

Determine if the kernel has a given middleware.

Application getApplication()

Get the Laravel application instance.

Details

void __construct(Application $app, Router $router)

Create a new HTTP kernel instance.

Parameters

Application $app
Router $router

Return Value

void

Response handle(Request $request)

Handle an incoming HTTP request.

Parameters

Request $request

Return Value

Response

void terminate(Request $request, Response $response)

Call the terminate method on any terminable middleware.

Parameters

Request $request
Response $response

Return Value

void

$this prependMiddleware(string $middleware)

Add a new middleware to beginning of the stack if it does not already exist.

Parameters

string $middleware

Return Value

$this

$this pushMiddleware(string $middleware)

Add a new middleware to end of the stack if it does not already exist.

Parameters

string $middleware

Return Value

$this

void bootstrap()

Bootstrap the application for HTTP requests.

Return Value

void

bool hasMiddleware(string $middleware)

Determine if the kernel has a given middleware.

Parameters

string $middleware

Return Value

bool

Application getApplication()

Get the Laravel application instance.

Return Value

Application

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Foundation/Http/Kernel.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部