Отправка всех email вынесена в очередь

This commit is contained in:
ErickSkrauch
2017-11-26 04:44:41 +03:00
parent 4d48b38e47
commit 88175fea48
17 changed files with 253 additions and 85 deletions

View File

@@ -1,13 +1,13 @@
<?php
$params = array_merge(
require(__DIR__ . '/../../common/config/params.php'),
require(__DIR__ . '/params.php')
require __DIR__ . '/../../common/config/params.php',
require __DIR__ . '/params.php'
);
return [
'id' => 'accounts-console',
'basePath' => dirname(__DIR__),
'bootstrap' => ['log'],
'bootstrap' => ['log', 'queue'],
'controllerNamespace' => 'console\controllers',
'params' => $params,
'components' => [
@@ -23,10 +23,13 @@ return [
],
],
],
'urlManager' => [
'hostInfo' => getenv('DOMAIN') ?: 'https://account.ely.by',
],
],
'controllerMap' => [
'migrate' => [
'class' => yii\console\controllers\MigrateController::class,
'class' => yii\console\controllers\MigrateController::class,
'templateFile' => '@console/views/migration.php',
],
],