interface AppKernelInterface implements SingletonInterface, ServiceContainerProviderInterface, FrontControllerAwareInterface

Interface AppKernelInterface

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

static 
setFrontController( FrontControllerInterface $app)

No description

static  mixed
boot( FrontControllerInterface $app)

This must be called when the system boots

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
log( mixed $level, string $message, array $context = array())

This must handle a logging system

static  void
handleException( Exception $e)

This must handle caught exceptions

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

This must handle caught errors

static  void
handleShutdown()

This must handle runtime shutdown

Details

mixed __call( string $name, array $arguments)

This must allow some shortcuts to access a service

Usage:

 $obj->get('request') == $obj->getService('request')
 $obj->getRequest() == $obj->getService('request')

Parameters

string $name
array $arguments

Return Value

mixed

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

This must allow some shortcuts to access a service

Usage:

 $obj::get('request') == $obj::getInstance()->getService('request')
 $obj::getRequest() == $obj::getInstance()->getService('request')

Parameters

string $name
array $arguments

Return Value

mixed

static setFrontController( FrontControllerInterface $app)

Parameters

FrontControllerInterface $app

static FrontControllerInterface getFrontController()

at line 40
static mixed boot( FrontControllerInterface $app)

This must be called when the system boots

Parameters

FrontControllerInterface $app

Return Value

mixed

at line 48
static mixed terminate( FrontControllerInterface $app)

This must be called when the system terminates its run

Parameters

FrontControllerInterface $app

Return Value

mixed

at line 56
static void abort( Exception $e)

This must abort a runtime safely

Parameters

Exception $e

Return Value

void

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

This must handle a logging system

Parameters

mixed $level
string $message
array $context

Return Value

void

at line 74
static void handleException( Exception $e)

This must handle caught exceptions

Parameters

Exception $e

Return Value

void

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

This must handle caught errors

Parameters

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

Return Value

void

at line 93
static void handleShutdown()

This must handle runtime shutdown

Return Value

void