老师你好,注册成功之后报Setting unknown property: yii\mail\MailEvent::messages这个错误
yii\base\UnknownPropertyException: Setting unknown property: yii\mail\MailEvent::messages in D:\project\advanced\vendor\yiisoft\yii2\base\BaseObject.php:163
Stack trace:
#0 D:\project\advanced\vendor\yiisoft\yii2\BaseYii.php(558): yii\base\BaseObject->__set('messages', Object(yii\swiftmailer\Message))
#1 D:\project\advanced\vendor\yiisoft\yii2\base\BaseObject.php(107): yii\BaseYii::configure(Object(yii\mail\MailEvent), Array)
#2 D:\project\advanced\vendor\yiisoft\yii2\mail\BaseMailer.php(380): yii\base\BaseObject->__construct(Array)
#3 D:\project\advanced\vendor\yiisoft\yii2\mail\BaseMailer.php(250): yii\mail\BaseMailer->beforeSend(Object(yii\swiftmailer\Message))
#4 D:\project\advanced\vendor\yiisoft\yii2\mail\BaseMessage.php(49): yii\mail\BaseMailer->send(Object(yii\swiftmailer\Message))
#5 D:\project\advanced\frontend\models\SignupForm.php(77): yii\mail\BaseMessage->send()
#6 D:\project\advanced\frontend\models\SignupForm.php(57): frontend\models\SignupForm->sendEmail(Object(common\models\User))
#7 D:\project\advanced\frontend\controllers\SiteController.php(156): frontend\models\SignupForm->signup()
#8 [internal function]: frontend\controllers\SiteController->actionSignup()
#9 D:\project\advanced\vendor\yiisoft\yii2\base\InlineAction.php(57): call_user_func_array(Array, Array)
#10 D:\project\advanced\vendor\yiisoft\yii2\base\Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#11 D:\project\advanced\vendor\yiisoft\yii2\base\Module.php(528): yii\base\Controller->runAction('signup', Array)
#12 D:\project\advanced\vendor\yiisoft\yii2\web\Application.php(103): yii\base\Module->runAction('site/signup', Array)
#13 D:\project\advanced\vendor\yiisoft\yii2\base\Application.php(386): yii\web\Application->handleRequest(Object(yii\web\Request))
#14 D:\project\advanced\frontend\web\index.php(17): yii\base\Application->run()
#15 {main}