Bootstrap.php
/**
     * Bootstrap method to be called during application bootstrap stage.
     * @param Application $app the application currently running
     * @throws \yii\base\InvalidConfigException
     */
Bootstrap method to be called during application bootstrap stage.
@param Application $app the application currently running
@throws \yii\base\InvalidConfigException
Bootstrap method to be called during application bootstrap stage . @param Application $app the application currently running @throws \ yii \ base \ InvalidConfigException
public function bootstrap($app)
    {
        Yii::$container->set(Mailer::class, \pantera\mail\components\Mailer::class);
        if (!isset($app->get('i18n')->translations['mail'])) {
            $app->get('i18n')->translations['mail'] = [
                'class' => PhpMessageSource::class,
                'basePath' => __DIR__ . '/messages',
                'sourceLanguage' => 'en-US'
            ];
        }
        $this->addUrlConfig();
    }
public function bootstrap ( $ app ) { Yii :: $ container -> set ( Mailer :: class , \ pantera \ mail \ components \ Mailer :: class ) ; if ( ! isset ( $ app -> get ( 'i18n' ) -> translations [ 'mail' ] ) ) { $ app -> get ( 'i18n' ) -> translations [ 'mail' ] = [ 'class' => PhpMessageSource :: class , 'basePath' => __DIR__ . '/messages' , 'sourceLanguage' => 'en-US' ] ; } $ this -> addUrlConfig ( ) ; }
Bootstrap method to be called during application bootstrap stage.
Bootstrap method to be called during application bootstrap stage .
/** @noinspection PhpUnnecessaryFullyQualifiedNameInspection */