Exemple #1
0
 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;
 }
 protected function invoke(Command $command)
 {
     $this->assertNull($command->execute());
 }
Exemple #3
0
 public function __construct(Smtp $smtp, $mechanism)
 {
     parent::__construct($smtp);
     $this->mechanism = $mechanism;
 }
Exemple #4
0
 public function __construct(Smtp $smtp, $command)
 {
     parent::__construct($smtp);
     $this->command = $command;
 }
Exemple #5
0
 /**
  * Easily invoke a command
  *
  * @param Command $command
  *
  * @since 2.0
  */
 public function invoke(Command $command)
 {
     $command->execute();
 }