translet
This commit is contained in:
27
Bootstrap.php
Normal file
27
Bootstrap.php
Normal 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'
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user