Esempio n. 1
0
 public function __clone()
 {
     parent::__clone();
     $this->closeFtpConnection();
     $this->fileName = null;
     $this->fileMatcher = null;
 }
Esempio n. 2
0
 /**
  * @inheritdoc
  */
 public function __construct(Connection $conn, $destination = null, EventDispatcherInterface $dispatcher = null)
 {
     parent::__construct($conn, $destination, $dispatcher);
     if (!isset($this->connection['file'])) {
         throw new \InvalidArgumentException('The "file" key is required in the Connection object');
     }
     if (!is_readable($this->connection['file'])) {
         throw new TransportException(sprintf('Not readable: %s', $this->connection['file']));
     }
 }
Esempio n. 3
0
 public function __construct()
 {
     parent::__construct(new Connection([]));
 }