예제 #1
0
파일: Data.php 프로젝트: fuelphp/email
 public function __construct(Smtp $smtp, $data)
 {
     parent::__construct($smtp);
     if (is_string($data)) {
         $data = explode($smtp->getConfig()->get('email.newline', "\r\n"), $data);
     }
     $this->data = $data;
 }
예제 #2
0
 protected function invoke(Command $command)
 {
     $this->assertNull($command->execute());
 }
예제 #3
0
파일: Auth.php 프로젝트: fuelphp/email
 public function __construct(Smtp $smtp, $mechanism)
 {
     parent::__construct($smtp);
     $this->mechanism = $mechanism;
 }
예제 #4
0
파일: Input.php 프로젝트: fuelphp/email
 public function __construct(Smtp $smtp, $command)
 {
     parent::__construct($smtp);
     $this->command = $command;
 }
예제 #5
0
파일: Smtp.php 프로젝트: fuelphp/email
 /**
  * Easily invoke a command
  *
  * @param Command $command
  *
  * @since 2.0
  */
 public function invoke(Command $command)
 {
     $command->execute();
 }