3
0
Fork 0
yii-cron/Bootstrap.php

28 lines
564 B
PHP
Raw Normal View History

2019-12-23 17:34:09 +03:00
<?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'
];
}
}
}