Ejemplo n.º 1
0
 /**
  * @param string $host
  * @param string $login
  * @param string $password
  * @param int $port
  * @param array $options
  * @throws ConnectionException
  */
 public function __construct($host, $login, $password, $port = 21, array $options = [])
 {
     parent::__construct($options);
     $this->host = $host;
     $this->login = $login;
     $this->password = $password;
     $this->port = $port;
     $this->maxTry = isset($options['maxTry']) && $options['maxTry'] > 0 ? $options['maxTry'] : 5;
     $this->tryInterval = isset($options['tryInterval']) && $options['tryInterval'] > 0 ? $options['tryInterval'] : 60;
     $this->connection = $this->connectWithTry();
 }
Ejemplo n.º 2
0
 /**
  * @param string $repository
  * @param array $options
  */
 public function __construct($repository, array $options = [])
 {
     $this->repository = $repository;
     parent::__construct($options);
 }
Ejemplo n.º 3
0
 /**
  * @param AwsClientInterface $s3Client
  * @param string $bucket
  * @param array $options
  */
 public function __construct(AwsClientInterface $s3Client, $bucket, array $options = [])
 {
     $this->s3Client = $s3Client;
     $this->bucket = $bucket;
     parent::__construct($options);
 }