Final Class common\bootstrap\MailerBootstrap
| Inheritance | common\bootstrap\MailerBootstrap |
|---|---|
| Implements | yii\base\BootstrapInterface |
| Source Code | https://github.com/yiisoft/yii2-app-advanced/blob/master/common/bootstrap/MailerBootstrap.php |
Registers the application mailer component as the DI container singleton for {@see MailerInterface}.
Codeception replaces components.mailer with its own TestMailer to capture sent emails.
Since the DI container is configured before the mailer mock, this bootstrap ensures the DI singleton resolves to the same mailer instance used by the application.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| bootstrap() | common\bootstrap\MailerBootstrap |