app\components\Command::__construct PHP Method

__construct() public method

加载配置
public __construct ( $config )
$config
    public function __construct($config)
    {
        if ($config) {
            $this->config = $config;
        } else {
            throw new \Exception(\yii::t('walle', 'unknown config'));
        }
    }