Menu

## WebKernel
in package
implements KernelContract Uses Microable

WebKernel.php : 33

### Table of Contents

#### Interfaces

KernelContract

#### Properties

$macros : array<string|int, mixed>
$app : PioniaApplication
$logger : LoggerInterface

#### Methods

__call() : mixed
  Dynamically handle calls to the class.
__callStatic() : mixed
  Dynamically handle calls to the class.
__construct() : mixed
autoDiscoverContentType() : string
boot() : Request
  Boot the kernel. This also runs the middleware chain and the authentication chain
container() : Container
flushMacros() : void
  Remove all the macros we had registered
getApplication() : ApplicationContract
  Get the application instance.
handle() : Response
hasMacro() : bool
  Check if we have a method in the balonables
macro() : void
  Add a new mixable to the macros
mixin() : void
  Mix another object into the class.
terminate() : Response
  This method is called after the request has been handled
isApiRequest() : bool
isMedia() : bool
  If its an upload we load it from the media folder in our storage
isRoot() : bool
  if the request is on root E.g. http://localhost:8080/ -- here we either load the default landing framework page or load any .html file we find in the statics folders
loadWelcomePage() : void
  The developer can override and access the entire context of the application in the overridden page
resolveFrontEnd() : void
  Resolves the front end if the request is a get request and the path is not an api path
serveSpa() : void
  Serve the landing html file of the spa if it exists

### Properties

#### $macros

Microable.php : 14
`protected static array<string|int, mixed> $macros = []`

#### $app

WebKernel.php : 37
`private PioniaApplication $app`

#### $logger

WebKernel.php : 39
`private LoggerInterface $logger`

### Methods

#### __call()

Microable.php : 101

Dynamically handle calls to the class.

`public __call(string $method, array<string|int, mixed> $parameters) : mixed`

##### Parameters

$method : string
$parameters : array<string|int, mixed>

##### Tags

throws
  BadMethodCallException

#### __callStatic()

Microable.php : 75

Dynamically handle calls to the class.

`public static __callStatic(string $method, array<string|int, mixed> $parameters) : mixed`

##### Parameters

$method : string
$parameters : array<string|int, mixed>

##### Tags

throws
  BadMethodCallException

#### __construct()

WebKernel.php : 41
`public __construct(PioniaApplication $application) : mixed`

##### Parameters

$application : PioniaApplication

#### autoDiscoverContentType()

WebKernel.php : 157
`public autoDiscoverContentType(string $filePath) : string`

##### Parameters

$filePath : string

##### Return values

string

#### boot()

WebKernel.php : 233

Boot the kernel. This also runs the middleware chain and the authentication chain

`public boot(Request $request) : Request`

##### Parameters

$request : Request

##### Return values

Request

#### container()

WebKernel.php : 223
`public container() : Container`

##### Return values

Container

#### flushMacros()

Microable.php : 61

Remove all the macros we had registered

`public static flushMacros() : void`

#### getApplication()

WebKernel.php : 253

Get the application instance.

`public getApplication() : ApplicationContract`

##### Return values

ApplicationContract

#### handle()

WebKernel.php : 75
`public handle(Request $request) : Response`

##### Parameters

$request : Request

##### Return values

Response

#### hasMacro()

Microable.php : 53

Check if we have a method in the balonables

`public static hasMacro(string $name) : bool`

##### Parameters

$name : string

##### Return values

bool

#### macro()

Microable.php : 22

Add a new mixable to the macros

`public static macro(string $key, $value) : void`

##### Parameters

$key : string
$value :

#### mixin()

Microable.php : 35

Mix another object into the class.

`public static mixin(object $mixin[, bool $replace = true ]) : void`

##### Parameters

$mixin : object
$replace : bool = true

##### Tags

throws
  ReflectionException

#### terminate()

WebKernel.php : 213

This method is called after the request has been handled

`public terminate(Request $request, BaseResponse $response) : Response`

##### Parameters

$request : Request
$response : BaseResponse

##### Return values

Response

#### isApiRequest()

WebKernel.php : 48
`private isApiRequest(Request $request) : bool`

##### Parameters

$request : Request

##### Return values

bool

#### isMedia()

WebKernel.php : 70

If its an upload we load it from the media folder in our storage

`private isMedia(Request $request) : bool`

##### Parameters

$request : Request

##### Return values

bool

#### isRoot()

WebKernel.php : 60

if the request is on root E.g. http://localhost:8080/ -- here we either load the default landing framework page or load any .html file we find in the statics folders

`private isRoot(Request $request) : bool`

##### Parameters

$request : Request

##### Return values

bool

#### loadWelcomePage()

WebKernel.php : 168

The developer can override and access the entire context of the application in the overridden page

`private loadWelcomePage(Request $request) : void`

##### Parameters

$request : Request

#### resolveFrontEnd()

WebKernel.php : 119

Resolves the front end if the request is a get request and the path is not an api path

`private resolveFrontEnd(Request $request) : void`

Using any frontend of your choice, you can serve the front end from the root of the project

##### Parameters

$request : Request

#### serveSpa()

WebKernel.php : 193

Serve the landing html file of the spa if it exists

`private serveSpa(Request $request, Filesystem $fs) : void`

##### Parameters

$request : Request
$fs : Filesystem

## Search results