vendor/2amigos/yii2-usuario/src/User/Bootstrap.php
/**
     * Ensures required mail parameters needed for the mail service.
     *
     * @param Application             $app
     * @param Module|\yii\base\Module $module
     */
Ensures required mail parameters needed for the mail service.
@param Application             $app
@param Module|\yii\base\Module $module
Ensures required mail parameters needed for the mail service . @param Application $app @param Module| \ yii \ base \ Module $module
protected function initMailServiceConfiguration(Application $app, Module $module)
    {
        $defaults = [
            'fromEmail' => 'no-reply@example.com',
            'welcomeMailSubject' => Yii::t('usuario', 'Welcome to {0}', $app->name),
            'confirmationMailSubject' => Yii::t('usuario', 'Confirm account on {0}', $app->name),
            'reconfirmationMailSubject' => Yii::t('usuario', 'Confirm email change on {0}', $app->name),
            'recoveryMailSubject' => Yii::t('usuario', 'Complete password reset on {0}', $app->name),
        ];
        $module->mailParams = array_merge($defaults, $module->mailParams);
    }
protected function initMailServiceConfiguration ( Application $ app , Module $ module ) { $ defaults = [ 'fromEmail' => 'no-reply@example.com' , 'welcomeMailSubject' => Yii :: t ( 'usuario' , 'Welcome to {0}' , $ app -> name ) , 'confirmationMailSubject' => Yii :: t ( 'usuario' , 'Confirm account on {0}' , $ app -> name ) , 'reconfirmationMailSubject' => Yii :: t ( 'usuario' , 'Confirm email change on {0}' , $ app -> name ) , 'recoveryMailSubject' => Yii :: t ( 'usuario' , 'Complete password reset on {0}' , $ app -> name ) , ] ; $ module -> mailParams = array_merge ( $ defaults , $ module -> mailParams ) ; }
Ensures required mail parameters needed for the mail service.
Ensures required mail parameters needed for the mail service .