PHP Class Dietcube\Dispatcher

Afficher le fichier Open project: mercari/dietcube Class Usage Examples

Protected Properties

Свойство Type Description
$app Application
$container Pimple\Container
$event_dispatcher Symfony\Component\EventDispatcher\EventDispatcher

Méthodes publiques

Méthode Description
__construct ( Application $app )
boot ( )
executeAction ( $handler, $vars = [], $fire_events = true )
getEnv ( $env = 'production' )
handleError ( Exception $errors ) : Response
handleRequest ( ) : Response
invoke ( $app_class, $app_root_dir, $env )

Méthodes protégées

Méthode Description
bootGlobals ( )
createRenderer ( )
detectErrorAction ( Exception $errors )
dispatchRouter ( $method, $path ) : array Dispatch router with HTTP request information.
filterResponse ( Response $response ) : Response Dispatch FILTER_RESPONSE event to filter response.
finishRequest ( Response $response ) : Response Finish request and send response.
getErrorController ( )
prepareResponse ( ) : Response

Method Details

__construct() public méthode

public __construct ( Application $app )
$app Application

boot() public méthode

public boot ( )

bootGlobals() protected méthode

protected bootGlobals ( )

createRenderer() protected méthode

protected createRenderer ( )

detectErrorAction() protected méthode

protected detectErrorAction ( Exception $errors )
$errors Exception

dispatchRouter() protected méthode

Dispatch router with HTTP request information.
protected dispatchRouter ( $method, $path ) : array
$method
$path
Résultat array

executeAction() public méthode

public executeAction ( $handler, $vars = [], $fire_events = true )

filterResponse() protected méthode

Dispatch FILTER_RESPONSE event to filter response.
protected filterResponse ( Response $response ) : Response
$response Response
Résultat Response

finishRequest() protected méthode

Finish request and send response.
protected finishRequest ( Response $response ) : Response
$response Response
Résultat Response

getEnv() public static méthode

public static getEnv ( $env = 'production' )

getErrorController() protected méthode

protected getErrorController ( )

handleError() public méthode

public handleError ( Exception $errors ) : Response
$errors Exception
Résultat Response

handleRequest() public méthode

public handleRequest ( ) : Response
Résultat Response

invoke() public static méthode

public static invoke ( $app_class, $app_root_dir, $env )

prepareResponse() protected méthode

protected prepareResponse ( ) : Response
Résultat Response

Property Details

$app protected_oe property

protected Application,dietcube $app
Résultat Application

$container protected_oe property

protected Container,Pimple $container
Résultat Pimple\Container

$event_dispatcher protected_oe property

protected EventDispatcher,Symfony\Component\EventDispatcher $event_dispatcher
Résultat Symfony\Component\EventDispatcher\EventDispatcher