Browse Source

Added Application::getMail().

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
d6f97ff4c1
  1. 9
      framework/yii/base/Application.php

9
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.
*/

Loading…
Cancel
Save