| Conditions | 2 |
| Paths | 3 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | public function registerBindings(IContainer $container): void |
||
| 32 | { |
||
| 33 | try { |
||
| 34 | $transport = Transport::fromDsn(Environment::getVar(Env::EMAIL_DNS)); |
||
|
|
|||
| 35 | $container->bindInstance(TransportInterface::class, $transport); |
||
| 36 | } catch (\Throwable $e) { |
||
| 37 | throw new Config(TransportInterface::class, [Env::EMAIL_DNS], $e->getCode(), $e); |
||
| 38 | } |
||
| 41 |