Commit 0ff0f9d3 by Alexander Makarov

Missing files for #4071

parent 2457e247
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
*/ */
return [ return [
'components' => [ 'components' => [
'mail' => [ 'mailer' => [
'useFileTransport' => true, 'useFileTransport' => true,
], ],
'urlManager' => [ 'urlManager' => [
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
*/ */
return [ return [
'components' => [ 'components' => [
'mail' => [ 'mailer' => [
'useFileTransport' => true, 'useFileTransport' => true,
], ],
'urlManager' => [ 'urlManager' => [
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
*/ */
return [ return [
'components' => [ 'components' => [
'mail' => [ 'mailer' => [
'useFileTransport' => true, 'useFileTransport' => true,
], ],
'urlManager' => [ 'urlManager' => [
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
*/ */
return [ return [
'components' => [ 'components' => [
'mail' => [ 'mailer' => [
'useFileTransport' => true, 'useFileTransport' => true,
], ],
'urlManager' => [ 'urlManager' => [
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
*/ */
return [ return [
'components' => [ 'components' => [
'mail' => [ 'mailer' => [
'useFileTransport' => true, 'useFileTransport' => true,
], ],
'urlManager' => [ 'urlManager' => [
......
...@@ -24,7 +24,7 @@ use Yii; ...@@ -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\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\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\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\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 * @property \yii\web\Response|\yii\console\Response $response The response component. This property is
* read-only. * read-only.
...@@ -566,9 +566,9 @@ abstract class Application extends Module ...@@ -566,9 +566,9 @@ abstract class Application extends Module
* Returns the mailer component. * Returns the mailer component.
* @return \yii\mail\MailerInterface the mailer interface * @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 ...@@ -601,7 +601,7 @@ abstract class Application extends Module
'view' => ['class' => 'yii\web\View'], 'view' => ['class' => 'yii\web\View'],
'formatter' => ['class' => 'yii\base\Formatter'], 'formatter' => ['class' => 'yii\base\Formatter'],
'i18n' => ['class' => 'yii\i18n\I18N'], 'i18n' => ['class' => 'yii\i18n\I18N'],
'mail' => ['class' => 'yii\swiftmailer\Mailer'], 'mailer' => ['class' => 'yii\swiftmailer\Mailer'],
'urlManager' => ['class' => 'yii\web\UrlManager'], 'urlManager' => ['class' => 'yii\web\UrlManager'],
'assetManager' => ['class' => 'yii\web\AssetManager'], 'assetManager' => ['class' => 'yii\web\AssetManager'],
]; ];
......
...@@ -18,7 +18,7 @@ class BaseMailerTest extends TestCase ...@@ -18,7 +18,7 @@ class BaseMailerTest extends TestCase
{ {
$this->mockApplication([ $this->mockApplication([
'components' => [ 'components' => [
'mail' => $this->createTestMailComponent(), 'mailer' => $this->createTestMailComponent(),
] ]
]); ]);
$filePath = $this->getTestFilePath(); $filePath = $this->getTestFilePath();
...@@ -59,7 +59,7 @@ class BaseMailerTest extends TestCase ...@@ -59,7 +59,7 @@ class BaseMailerTest extends TestCase
*/ */
protected function getTestMailComponent() protected function getTestMailComponent()
{ {
return Yii::$app->get('mail'); return Yii::$app->get('mailer');
} }
// Tests : // Tests :
......
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