Пример #1
0
 public function default_components()
 {
     return array_merge(parent::default_components(), ['session' => ['class' => 'mii\\web\\Session'], 'blocks' => ['class' => 'mii\\web\\Blocks'], 'router' => ['class' => 'mii\\core\\Router'], 'request' => ['class' => 'mii\\web\\Request'], 'response' => ['class' => 'mii\\web\\Response'], 'captcha' => ['class' => 'mii\\captcha\\Captcha'], 'error' => ['class' => 'mii\\web\\ErrorHandler']]);
 }
Пример #2
0
 public function default_components()
 {
     return array_merge(parent::default_components(), ['request' => ['class' => 'mii\\console\\Request'], 'response' => ['class' => 'mii\\console\\Response'], 'error' => ['class' => 'mii\\console\\ErrorHandler']]);
 }