28 lines
564 B
PHP
28 lines
564 B
PHP
<?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'
|
|
];
|
|
}
|
|
}
|
|
|
|
}
|