mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Missing files for #4071
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
*/
|
||||
return [
|
||||
'components' => [
|
||||
'mail' => [
|
||||
'mailer' => [
|
||||
'useFileTransport' => true,
|
||||
],
|
||||
'urlManager' => [
|
||||
|
@ -4,7 +4,7 @@
|
||||
*/
|
||||
return [
|
||||
'components' => [
|
||||
'mail' => [
|
||||
'mailer' => [
|
||||
'useFileTransport' => true,
|
||||
],
|
||||
'urlManager' => [
|
||||
|
@ -4,7 +4,7 @@
|
||||
*/
|
||||
return [
|
||||
'components' => [
|
||||
'mail' => [
|
||||
'mailer' => [
|
||||
'useFileTransport' => true,
|
||||
],
|
||||
'urlManager' => [
|
||||
|
@ -4,7 +4,7 @@
|
||||
*/
|
||||
return [
|
||||
'components' => [
|
||||
'mail' => [
|
||||
'mailer' => [
|
||||
'useFileTransport' => true,
|
||||
],
|
||||
'urlManager' => [
|
||||
|
@ -4,7 +4,7 @@
|
||||
*/
|
||||
return [
|
||||
'components' => [
|
||||
'mail' => [
|
||||
'mailer' => [
|
||||
'useFileTransport' => true,
|
||||
],
|
||||
'urlManager' => [
|
||||
|
@ -24,7 +24,7 @@ use Yii;
|
||||
* @property \yii\base\Formatter|\yii\i18n\Formatter $formatter The formatter application component. This property is read-only.
|
||||
* @property \yii\i18n\I18N $i18n The internationalization component. This property is read-only.
|
||||
* @property \yii\log\Dispatcher $log The log dispatcher component. This property is read-only.
|
||||
* @property \yii\mail\MailerInterface $mail The mailer interface. This property is read-only.
|
||||
* @property \yii\mail\MailerInterface $mailer The mailer interface. This property is read-only.
|
||||
* @property \yii\web\Request|\yii\console\Request $request The request component. This property is read-only.
|
||||
* @property \yii\web\Response|\yii\console\Response $response The response component. This property is
|
||||
* read-only.
|
||||
@ -566,9 +566,9 @@ abstract class Application extends Module
|
||||
* Returns the mailer component.
|
||||
* @return \yii\mail\MailerInterface the mailer interface
|
||||
*/
|
||||
public function getMail()
|
||||
public function getMailer()
|
||||
{
|
||||
return $this->get('mail');
|
||||
return $this->get('mailer');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -601,7 +601,7 @@ abstract class Application extends Module
|
||||
'view' => ['class' => 'yii\web\View'],
|
||||
'formatter' => ['class' => 'yii\base\Formatter'],
|
||||
'i18n' => ['class' => 'yii\i18n\I18N'],
|
||||
'mail' => ['class' => 'yii\swiftmailer\Mailer'],
|
||||
'mailer' => ['class' => 'yii\swiftmailer\Mailer'],
|
||||
'urlManager' => ['class' => 'yii\web\UrlManager'],
|
||||
'assetManager' => ['class' => 'yii\web\AssetManager'],
|
||||
];
|
||||
|
@ -18,7 +18,7 @@ class BaseMailerTest extends TestCase
|
||||
{
|
||||
$this->mockApplication([
|
||||
'components' => [
|
||||
'mail' => $this->createTestMailComponent(),
|
||||
'mailer' => $this->createTestMailComponent(),
|
||||
]
|
||||
]);
|
||||
$filePath = $this->getTestFilePath();
|
||||
@ -59,7 +59,7 @@ class BaseMailerTest extends TestCase
|
||||
*/
|
||||
protected function getTestMailComponent()
|
||||
{
|
||||
return Yii::$app->get('mail');
|
||||
return Yii::$app->get('mailer');
|
||||
}
|
||||
|
||||
// Tests :
|
||||
|
Reference in New Issue
Block a user