This commit is contained in:
srybkin committed 2019-12-23 17:34:09 +03:00
1 parent da78311a5c
commit 6db4e4252b
9 files changed
+226 -34

No files matched your search

+27
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'
];
}
}
}