Test Failed
Push — master ( df2e82...e1500e )
by Revin
12:34
created

Bootstrap.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

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)
0 ignored issues
show
Coding Style Best Practice introduced by
Please use __construct() instead of a PHP4-style constructor that is named after the class.
Loading history...
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
}