PHP Class luya\base\BaseBootstrap

Author: Basil Suter ([email protected])
Inheritance: implements yii\base\BootstrapInterface
Show file Open project: luyadev/luya

Public Methods

Method Description
beforeRun ( object $app ) This method will be invoke before the run() method.
bootstrap ( object $app ) Boostrap method will be invoken by Yii Application bootrapping proccess containing the Application ($app) Object to get/set data.
extractModules ( object $app ) Extract and load all modules from the Application-Object.
getModules ( ) : array Return all modules prepared by extractModules() method.
hasModule ( string $module ) : boolean Check if a Module exists in the module list getModules().
run ( object $app ) This method will be invoke after the beforeRun() method.

Private Methods

Method Description
registerComponents ( object $app ) Register all components from the modules registerComponents() method to the Applcation.

Method Details

beforeRun() abstract public method

This method will be invoke before the run() method.
abstract public beforeRun ( object $app )
$app object Luya Application `luya\base\Application`

bootstrap() public method

Boostrap method will be invoken by Yii Application bootrapping proccess containing the Application ($app) Object to get/set data.
public bootstrap ( object $app )
$app object Luya Application `luya\base\Application`.

extractModules() public method

Extract and load all modules from the Application-Object.
public extractModules ( object $app )
$app object Luya Application `luya\base\Application`.

getModules() public method

Return all modules prepared by extractModules() method.
public getModules ( ) : array
return array An array containg all modules where the key is the module name and the value is the Module Object `luya\base\Module`.

hasModule() public method

Check if a Module exists in the module list getModules().
public hasModule ( string $module ) : boolean
$module string The name of the Module
return boolean

run() abstract public method

This method will be invoke after the beforeRun() method.
abstract public run ( object $app )
$app object Luya Application `luya\base\Application`