Code

< 40 %
40-60 %
> 60 %
1
<?php
2
/**
3
 * Bootstrap.php
4
 * @author Roman Revin http://phptime.ru
5
 */
6
7
namespace rmrevin\yii\module\File;
8
9
/**
10
 * Class Bootstrap
11
 * @package rmrevin\yii\module\File
12
 */
13
class Bootstrap implements \yii\base\BootstrapInterface
14
{
15
16
    /**
17
     * @inheritdoc
18
     */
19 15
    public function bootstrap($app)
20
    {
21 15
        $app->getI18n()->translations['service-file'] = \Yii::createObject([
22 15
            'class' => \yii\i18n\PhpMessageSource::className(),
23 15
            'basePath' => '@vendor/rmrevin/yii2-file/messages',
24 15
        ]);
25
    }
26
}