Beispiel #1
0
 /**
  * @inhertdoc
  */
 public function __construct(array $config)
 {
     parent::__construct($config);
     if ($this->operatorName === null || $this->username === null) {
         throw new InvalidConfigException('The "operatorName" property must be set.');
     } elseif ($this->operatorPassword === null || $this->password === null) {
         throw new InvalidConfigException('The "operatorPassword" property must be set.');
     } elseif ($this->bucket === null) {
         throw new InvalidConfigException('The "bucket" property must be set.');
     }
 }
Beispiel #2
0
 /**
  * @depends testInstantiable
  * @expectedException RuntimeException
  */
 public function testPassiveFailSsl()
 {
     $adapter = new Ftp(['host' => 'pasv.fail', 'ssl' => true, 'root' => 'somewhere']);
     $adapter->connect();
 }
Beispiel #3
0
 /**
  * @ignore
  * (non-PHPdoc)
  * @see \League\Flysystem\Adapter\Ftp::getMetadata()
  */
 public function getMetadata($path)
 {
     return @parent::getMetadata($path);
 }
 /**
  * FTPWildCardSearchAdapter constructor.
  *
  * @param array $config
  */
 public function __construct(array $config)
 {
     $this->configurable[] = 'allowSearchingUsingWildCard';
     $config['allowSearchingUsingWildCard'] = isset($config['allowSearchingUsingWildCard']) && $config['allowSearchingUsingWildCard'] ?: false;
     parent::__construct($config);
 }