Inheritance: use trait Webiny\Component\StdLib\FactoryLoaderTrait, use trait Webiny\Component\StdLib\StdLibTrait
Example #1
0
 /**
  * Creates a new message.
  *
  * @param array|ArrayObject|ConfigObject $config (Optional)
  *
  * @return MessageInterface
  * @throws Bridge\MailerException
  */
 public function getMessage($config = null)
 {
     if ($config && !$config instanceof ConfigObject) {
         $config = new ConfigObject($config);
     }
     return Loader::getMessage($this->mailerName, $config);
 }
Example #2
0
 public function testGetTransport()
 {
     $this->assertInstanceOf('\\Webiny\\Component\\Mailer\\Bridge\\TransportInterface', Loader::getTransport('Default'));
 }