PHP Class Bluz\Application\Application

Inheritance: use trait Bluz\Common\Helper, use trait Bluz\Common\Singleton
Afficher le fichier Open project: bluzphp/framework Class Usage Examples

Protected Properties

Свойство Type Description
$debugFlag Debug application flag
$environment Environment name
$layoutFlag Layout usage flag
$path Application path

Méthodes publiques

Méthode Description
dispatch ( string $module, string $controller, array $params = [] ) : Controller Dispatch controller with params
end ( ) : void Finally method
getEnvironment ( ) : string Get application environment
getPath ( ) : string Get path to Application
getRequest ( ) : ServerRequest Get Request instance
getResponse ( ) : Response Get Response instance
init ( string $environment = 'production' ) : void Initialize process
isDebug ( ) : boolean Return Debug flag
process ( ) : void Process application
render ( ) : void Render, is send Response
run ( ) : void Run application
useLayout ( boolean | null $flag = null ) : boolean Return Layout Flag

Méthodes protégées

Méthode Description
doDispatch ( string $module, string $controller, array $params = [] ) : Controller Do dispatch
doProcess ( ) : void Do process
initConfig ( ) : void Initial Request instance
initRequest ( ) : void Initial Request instance
initResponse ( ) : void Initial Response instance
initRouter ( ) : void Initial Router instance
postDispatch ( string $module, string $controller, array $params = [] ) : void Post dispatch mount point
postProcess ( ) : void Post process
preDispatch ( string $module, string $controller, array $params = [] ) : void Pre dispatch mount point
preProcess ( ) : void Pre process

Method Details

dispatch() public méthode

Call dispatch from any \Bluz\Package Application::getInstance()->dispatch($module, $controller, array $params);
public dispatch ( string $module, string $controller, array $params = [] ) : Controller
$module string
$controller string
$params array
Résultat Bluz\Controller\Controller

doDispatch() protected méthode

Do dispatch
protected doDispatch ( string $module, string $controller, array $params = [] ) : Controller
$module string
$controller string
$params array
Résultat Bluz\Controller\Controller

doProcess() protected méthode

Do process
protected doProcess ( ) : void
Résultat void

end() public méthode

Finally method
public end ( ) : void
Résultat void

getEnvironment() public méthode

Get application environment
public getEnvironment ( ) : string
Résultat string

getPath() public méthode

Get path to Application
public getPath ( ) : string
Résultat string

getRequest() public méthode

Get Request instance
public getRequest ( ) : ServerRequest
Résultat Zend\Diactoros\ServerRequest

getResponse() public méthode

Get Response instance
public getResponse ( ) : Response
Résultat Bluz\Response\Response

init() public méthode

Initialize process
public init ( string $environment = 'production' ) : void
$environment string
Résultat void

initConfig() protected méthode

Initial Request instance
protected initConfig ( ) : void
Résultat void

initRequest() protected méthode

Initial Request instance
protected initRequest ( ) : void
Résultat void

initResponse() protected méthode

Initial Response instance
protected initResponse ( ) : void
Résultat void

initRouter() protected méthode

Initial Router instance
protected initRouter ( ) : void
Résultat void

isDebug() public méthode

Return Debug flag
public isDebug ( ) : boolean
Résultat boolean

postDispatch() protected méthode

Post dispatch mount point
protected postDispatch ( string $module, string $controller, array $params = [] ) : void
$module string
$controller string
$params array
Résultat void

postProcess() protected méthode

Post process
protected postProcess ( ) : void
Résultat void

preDispatch() protected méthode

Pre dispatch mount point
protected preDispatch ( string $module, string $controller, array $params = [] ) : void
$module string
$controller string
$params array
Résultat void

preProcess() protected méthode

Pre process
protected preProcess ( ) : void
Résultat void

process() public méthode

Note: - Why you don't use "X-" prefix for custom headers? - Because it deprecated ({@link http://tools.ietf.org/html/rfc6648})
public process ( ) : void
Résultat void

render() public méthode

Render, is send Response
public render ( ) : void
Résultat void

run() public méthode

Run application
public run ( ) : void
Résultat void

useLayout() public méthode

Return Layout Flag
public useLayout ( boolean | null $flag = null ) : boolean
$flag boolean | null
Résultat boolean

Property Details

$debugFlag protected_oe property

Debug application flag
protected $debugFlag

$environment protected_oe property

Environment name
protected $environment

$layoutFlag protected_oe property

Layout usage flag
protected $layoutFlag

$path protected_oe property

Application path
protected $path