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.

getApplication()

Get the Laravel application instance.

Details

at line line 74
void __construct( Application $app, Router $router)

Create a new HTTP kernel instance.

Parameters

Application $app
Router $router

Return Value

void

at line line 94
Response handle( Request $request)

Handle an incoming HTTP request.

Parameters

Request $request

Return Value

Response

at line line 142
void terminate( Request $request, Response $response)

Call the terminate method on any terminable middleware.

Parameters

Request $request
Response $response

Return Value

void

at line line 200
$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

at line line 215
$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

at line line 229
void bootstrap()

Bootstrap the application for HTTP requests.

Return Value

void

at line line 256
bool hasMiddleware( string $middleware)

Determine if the kernel has a given middleware.

Parameters

string $middleware

Return Value

bool

at line line 299
Application getApplication()

Get the Laravel application instance.

Return Value

Application