coreComponents() public méthode

Returns the configuration of core application components.
See also: set()
public coreComponents ( )
Exemple #1
0
 /**
  * @inheritdoc
  */
 public function coreComponents()
 {
     return array_merge(parent::coreComponents(), ['request' => ['class' => 'yii\\web\\Request'], 'response' => ['class' => 'yii\\web\\Response'], 'session' => ['class' => 'yii\\web\\Session'], 'user' => ['class' => 'yii\\web\\User'], 'errorHandler' => ['class' => 'yii\\web\\ErrorHandler']]);
 }
Exemple #2
0
 /**
  * @inheritdoc
  */
 public function coreComponents()
 {
     return array_merge(parent::coreComponents(), ['request' => ['class' => 'yii\\console\\Request'], 'response' => ['class' => 'yii\\console\\Response'], 'errorHandler' => ['class' => 'yii\\console\\ErrorHandler']]);
 }