/** * Get the name of bridge library which will be used as the driver. * * @param string $mailer * * @return string */ protected static function getLibrary($mailer) { return Mailer::getConfig()->get('Bridge.' . $mailer, self::$library); }
public function testConfigContent() { $this->assertSame('nikola@localhost', Mailer::getConfig()->Default->Sender->Email); $this->assertSame('\\Webiny\\Component\\Mailer\\Bridge\\SwiftMailer\\SwiftMailer', Mailer::getConfig()->Bridge->Default); }