This commit is contained in:
2019-12-23 17:34:09 +03:00
parent da78311a5c
commit 6db4e4252b
9 changed files with 226 additions and 34 deletions

27
Bootstrap.php Normal file
View File

@@ -0,0 +1,27 @@
<?php
namespace dominion\cron;
use yii\base\BootstrapInterface;
use yii\i18n\PhpMessageSource;
class Bootstrap implements BootstrapInterface
{
/** @inheritdoc */
public function bootstrap($app)
{
var_dump(22222); die();
if (!isset($app->get('i18n')->translations['user*']))
{
$app->get('i18n')->translations['user*'] = [
'class' => PhpMessageSource::className(),
'basePath' => __DIR__ . '/messages',
'sourceLanguage' => 'ru-RU'
];
}
}
}