From d6f97ff4c17799e6d953038c3ff84a9b88e9d725 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Thu, 28 Nov 2013 09:08:02 -0500 Subject: [PATCH] Added Application::getMail(). --- framework/yii/base/Application.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/framework/yii/base/Application.php b/framework/yii/base/Application.php index 4f2bee2..48b526c 100644 --- a/framework/yii/base/Application.php +++ b/framework/yii/base/Application.php @@ -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. * @return \yii\rbac\Manager the auth manager for this application. */