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.');
     }
 }
 /**
  * FTPWildCardSearchAdapter constructor.
  *
  * @param array $config
  */
 public function __construct(array $config)
 {
     $this->configurable[] = 'allowSearchingUsingWildCard';
     $config['allowSearchingUsingWildCard'] = isset($config['allowSearchingUsingWildCard']) && $config['allowSearchingUsingWildCard'] ?: false;
     parent::__construct($config);
 }