Commit d6f97ff4 by Qiang Xue

Added Application::getMail().

parent 0390a998
...@@ -459,6 +459,15 @@ abstract class Application extends Module ...@@ -459,6 +459,15 @@ abstract class Application extends Module
} }
/** /**
* 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. * Returns the auth manager for this application.
* @return \yii\rbac\Manager 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