PHP 클래스 Webiny\Component\Mailer\Bridge\Loader

상속: use trait Webiny\Component\StdLib\FactoryLoaderTrait, use trait Webiny\Component\StdLib\StdLibTrait
파일 보기 프로젝트 열기: Webiny/Framework 1 사용 예제들

공개 메소드들

메소드 설명
getMessage ( $mailer, ConfigObject $config = null ) : Webiny\Component\Mailer\MessageInterface Returns an instance of MessageInterface based on current bridge.
getTransport ( string $mailer ) : Webiny\Component\Mailer\TransportInterface Returns an instance of TransportInterface based on current bridge.
setLibrary ( string $pathToClass ) Change the default library used for the driver.

보호된 메소드들

메소드 설명
getLibrary ( string $mailer ) : string Get the name of bridge library which will be used as the driver.

메소드 상세

getLibrary() 보호된 정적인 메소드

Get the name of bridge library which will be used as the driver.
protected static getLibrary ( string $mailer ) : string
$mailer string
리턴 string

getMessage() 공개 정적인 메소드

Returns an instance of MessageInterface based on current bridge.
public static getMessage ( $mailer, ConfigObject $config = null ) : Webiny\Component\Mailer\MessageInterface
$mailer
$config Webiny\Component\Config\ConfigObject
리턴 Webiny\Component\Mailer\MessageInterface

getTransport() 공개 정적인 메소드

Returns an instance of TransportInterface based on current bridge.
public static getTransport ( string $mailer ) : Webiny\Component\Mailer\TransportInterface
$mailer string
리턴 Webiny\Component\Mailer\TransportInterface

setLibrary() 공개 정적인 메소드

Change the default library used for the driver.
public static setLibrary ( string $pathToClass )
$pathToClass string Path to the new driver class. Must be an instance of \Webiny\Component\Mailer\Bridge\MailerInterface