$config = [
'id' => 'test-console',
'basePath' => dirname(__DIR__),
'bootstrap' => [
'log',
'google',
],
'sourceLanguage'=> 'en',
'language' => 'ru',
'controllerNamespace' => 'app\commands',
'components' => [
'cache' => [
'class' => 'yii\caching\FileCache',
],
'log' => [
'targets' => [
[
'class' => 'yii\log\FileTarget',
'levels' => ['error', 'warning'],
],
],
],
// 'google' => [
// 'id' => 'google',
// 'class' => 'app\modules\google\GoogleModule',
// ],
// 'urlManager' => [
// 'enablePrettyUrl' => true,
// 'showScriptName' => false,
// 'rules' => [
// 'google/accounts' => 'google/accounts/index',
// ],
// ],
],
'modules' => [
'google' => [
'id' => 'google',
'class' => 'app\modules\google\GoogleModule',
]
],
'params' => $params,
'controllerMap' => [
'google_accounts' => [
'class' => 'app\modules\google\commands\AccountsController',
],
'google_campaigns' => [
'class' => 'app\modules\google\commands\CampaignsController',
],
// 'fixture' => [ // Fixture generation command line.
// 'class' => 'yii\faker\FixtureController',
// ],
],
];