class AppKernel extends ServiceContainer implements AppKernelInterface

Class AppKernel: the root core of the application

Traits

Patterns\Traits\SingletonTrait

Methods

mixed
__call( string $name, array $arguments)

This must allow some shortcuts to access a service

static  mixed
__callStatic( string $name, array $arguments)

This must allow some shortcuts to access a service

__construct()

Avoid public construction of the object and prefer the getInstance() static singleton access

static  null|string
getApi( string $name)

No description

static  bool
isApiValid( string $name, object|callable $object)

No description

static  object
apiFactory( string $name, string $class, array $arguments = array())

No description

static 
setFrontController( FrontControllerInterface $app)

No description

getFrontController()

No description

static  mixed
boot( FrontControllerInterface $app)

No description

static  mixed
terminate( FrontControllerInterface $app)

This must be called when the system terminates its run

static  void
abort( Exception $e)

This must abort a runtime safely

static  void
handleException( Exception $e)

No description

static  void
handleError( int $errno, string $errstr = '', string $errfile = '', int $errline, array $errcontext = array())

No description

static  void
handleShutdown()

This must handle runtime shutdown

static  void
log( mixed $level, string $message, array $context = array())

No description

Details

mixed __call( string $name, array $arguments)

This must allow some shortcuts to access a service

Parameters

string $name
array $arguments

Return Value

mixed

static mixed __callStatic( string $name, array $arguments)

This must allow some shortcuts to access a service

Parameters

string $name
array $arguments

Return Value

mixed

at line 90
__construct()

Avoid public construction of the object and prefer the getInstance() static singleton access

at line 125
static null|string getApi( string $name)

Parameters

string $name

Return Value

null|string

at line 136
static bool isApiValid( string $name, object|callable $object)

Parameters

string $name
object|callable $object

Return Value

bool

at line 153
static object apiFactory( string $name, string $class, array $arguments = array())

Parameters

string $name
string $class
array $arguments

Return Value

object

Exceptions

ErrorException

at line 184
static setFrontController( FrontControllerInterface $app)

Parameters

FrontControllerInterface $app

at line 192
static FrontControllerInterface getFrontController()

at line 206
static mixed boot( FrontControllerInterface $app)

Parameters

FrontControllerInterface $app

Return Value

mixed

Exceptions

ErrorException

at line 285
static mixed terminate( FrontControllerInterface $app)

This must be called when the system terminates its run

Parameters

FrontControllerInterface $app

Return Value

mixed

at line 297
static void abort( Exception $e)

This must abort a runtime safely

Parameters

Exception $e

Return Value

void

at line 306
static void handleException( Exception $e)

Parameters

Exception $e

Return Value

void

Exceptions

ErrorException

at line 331
static void handleError( int $errno, string $errstr = '', string $errfile = '', int $errline, array $errcontext = array())

Parameters

int $errno
string $errstr
string $errfile
int $errline
array $errcontext

Return Value

void

Exceptions

ErrorException

at line 344
static void handleShutdown()

This must handle runtime shutdown

Return Value

void

at line 355
static void log( mixed $level, string $message, array $context = array())

Parameters

mixed $level
string $message
array $context

Return Value

void