mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-10 02:13:17 +08:00
Mailer default view class changed to "yii\web\View".
This commit is contained in:
@ -100,7 +100,7 @@ abstract class BaseMailer extends Component implements MailerInterface, ViewCont
|
|||||||
protected function createView(array $config)
|
protected function createView(array $config)
|
||||||
{
|
{
|
||||||
if (!array_key_exists('class', $config)) {
|
if (!array_key_exists('class', $config)) {
|
||||||
$config['class'] = '\yii\base\View';
|
$config['class'] = 'yii\web\View';
|
||||||
}
|
}
|
||||||
return Yii::createObject($config);
|
return Yii::createObject($config);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user