/**
  * @inheritdoc
  */
 public function init()
 {
     foreach (['username', 'apiKey', 'containerName', 'region'] as $attribute) {
         if ($this->{$attribute} === null) {
             throw new InvalidConfigException(strtr('"{class}::{attribute}" cannot be empty.', ['{class}' => static::className(), '{attribute}' => '$' . $attribute]));
         }
     }
     parent::init();
 }
Exemplo n.º 2
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     foreach (['key', 'secret', 'bucket'] as $attribute) {
         if ($this->{$attribute} === null) {
             throw new InvalidConfigException(strtr('"{class}::{attribute}" cannot be empty.', ['{class}' => static::className(), '{attribute}' => '$' . $attribute]));
         }
     }
     parent::init();
 }