| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 1 |
| CRAP Score | 1.6699 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | 8 | public function register(Container $container): void |
|
| 28 | { |
||
| 29 | $container->set(\Swift_Transport::class, function () { |
||
| 30 | $swiftSmtpTransport = new \Swift_SmtpTransport( |
||
| 31 | $this->host, |
||
| 32 | $this->port, |
||
| 33 | $this->encryption |
||
| 34 | ); |
||
| 35 | |||
| 36 | $swiftSmtpTransport->setUsername($this->username); |
||
| 37 | $swiftSmtpTransport->setPassword($this->password); |
||
| 38 | |||
| 39 | return $swiftSmtpTransport; |
||
| 40 | 8 | }); |
|
| 43 |