Commit d6f97ff4 authored by Qiang Xue's avatar Qiang Xue

Added Application::getMail().

parent 0390a998
......@@ -458,6 +458,15 @@ abstract class Application extends Module
return $this->getComponent('i18n');
}
/**
* Returns the mailer component.
* @return \yii\mail\MailerInterface the mailer interface
*/
public function getMail()
{
return $this->getComponent('mail');
}
/**
* Returns the auth manager for this application.
* @return \yii\rbac\Manager the auth manager for this application.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment