1 | <?php |
||
14 | abstract class BaseBootstrap implements BootstrapInterface |
||
15 | { |
||
16 | /** |
||
17 | * @var array Readonly variable contains all module Objects. |
||
18 | */ |
||
19 | private $_modules; |
||
20 | |||
21 | /** |
||
22 | * Boostrap method will be invoken by Yii Application bootrapping proccess containing |
||
23 | * the Application ($app) Object to get/set data. |
||
24 | * |
||
25 | * @param object $app Luya Application `luya\base\Application`. |
||
26 | */ |
||
27 | public function bootstrap($app) |
||
49 | |||
50 | /** |
||
51 | * Extract and load all modules from the Application-Object. |
||
52 | * |
||
53 | * @param object $app Luya Application `luya\base\Application`. |
||
54 | */ |
||
55 | public function extractModules($app) |
||
72 | |||
73 | /** |
||
74 | * Check if a Module exists in the module list `getModules()`. |
||
75 | * |
||
76 | * @param string $module The name of the Module |
||
77 | * @return bool |
||
78 | */ |
||
79 | public function hasModule($module) |
||
83 | |||
84 | /** |
||
85 | * Return all modules prepared by `extractModules()` method. |
||
86 | * |
||
87 | * @return array An array containg all modules where the key is the module name and the value is the Module Object `luya\base\Module`. |
||
88 | */ |
||
89 | public function getModules() |
||
93 | |||
94 | /** |
||
95 | * Register all components from the modules `registerComponents()` method to the |
||
96 | * Applcation. |
||
97 | * |
||
98 | * @param object $app Luya Appliation `\luya\base\Application`. |
||
99 | */ |
||
100 | private function startModules($app) |
||
117 | |||
118 | /** |
||
119 | * This method will be invoke before the `run()` method. |
||
120 | * |
||
121 | * @param object $app Luya Application `luya\base\Application` |
||
122 | */ |
||
123 | abstract public function beforeRun($app); |
||
124 | |||
125 | /** |
||
126 | * This method will be invoke after the `beforeRun()` method. |
||
127 | * |
||
128 | * @param object $app Luya Application `luya\base\Application` |
||
129 | */ |
||
130 | abstract public function run($app); |
||
131 | } |
||
132 |
This method has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.