コード例 #1
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     if ($this->baseUri === null) {
         throw new InvalidConfigException('The "baseUri" property must be set.');
     }
     parent::init();
 }
コード例 #2
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     if ($this->path === null) {
         throw new InvalidConfigException('The "path" property must be set.');
     }
     $this->path = Yii::getAlias($this->path);
     parent::init();
 }
コード例 #3
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     if ($this->host === null) {
         throw new InvalidConfigException('The "host" property must be set.');
     }
     if ($this->root !== null) {
         $this->root = Yii::getAlias($this->root);
     }
     parent::init();
 }
コード例 #4
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     if ($this->server === null) {
         throw new InvalidConfigException('The "server" property must be set.');
     }
     if ($this->database === null) {
         throw new InvalidConfigException('The "database" property must be set.');
     }
     parent::init();
 }
コード例 #5
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     if ($this->token === null) {
         throw new InvalidConfigException('The "token" property must be set.');
     }
     if ($this->app === null) {
         throw new InvalidConfigException('The "app" property must be set.');
     }
     parent::init();
 }
コード例 #6
0
 /**
  * Returns filesystem by name.
  *
  * @param string $filesystem name
  * @return null|Filesystem
  */
 public function get($filesystem)
 {
     if (isset($this->filesystems[$filesystem])) {
         if (!$this->filesystems[$filesystem] instanceof Filesystem) {
             return $this->filesystems[$filesystem] = Instance::ensure($this->filesystems[$filesystem], Filesystem::className());
         } else {
             return $this->filesystems[$filesystem];
         }
     } else {
         return null;
     }
 }
コード例 #7
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     if ($this->accountName === null) {
         throw new InvalidConfigException('The "accountName" property must be set.');
     }
     if ($this->accountKey === null) {
         throw new InvalidConfigException('The "accountKey" property must be set.');
     }
     if ($this->container === null) {
         throw new InvalidConfigException('The "container" property must be set.');
     }
     parent::init();
 }
コード例 #8
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     if ($this->key === null) {
         throw new InvalidConfigException('The "key" property must be set.');
     }
     if ($this->secret === null) {
         throw new InvalidConfigException('The "secret" property must be set.');
     }
     if ($this->bucket === null) {
         throw new InvalidConfigException('The "bucket" property must be set.');
     }
     parent::init();
 }
コード例 #9
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     if ($this->consumerKey === null) {
         throw new InvalidConfigException('The "consumerKey" property must be set.');
     }
     if ($this->consumerSecret === null) {
         throw new InvalidConfigException('The "consumerSecret" property must be set.');
     }
     if ($this->accessToken === null) {
         throw new InvalidConfigException('The "accessToken" property must be set.');
     }
     if ($this->tokenSecret === null) {
         throw new InvalidConfigException('The "tokenSecret" property must be set.');
     }
     parent::init();
 }
コード例 #10
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     if ($this->host === null) {
         throw new InvalidConfigException('The "host" property must be set.');
     }
     if ($this->username === null) {
         throw new InvalidConfigException('The "username" property must be set.');
     }
     if ($this->password === null && $this->privateKey === null) {
         throw new InvalidConfigException('Either "password" or "privateKey" property must be set.');
     }
     if ($this->root !== null) {
         $this->root = Yii::getAlias($this->root);
     }
     parent::init();
 }
コード例 #11
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     if ($this->endpoint === null) {
         throw new InvalidConfigException('The "endpoint" property must be set.');
     }
     if ($this->username === null) {
         throw new InvalidConfigException('The "username" property must be set.');
     }
     if ($this->apiKey === null) {
         throw new InvalidConfigException('The "apiKey" property must be set.');
     }
     if ($this->region === null) {
         throw new InvalidConfigException('The "region" property must be set.');
     }
     if ($this->container === null) {
         throw new InvalidConfigException('The "container" property must be set.');
     }
     parent::init();
 }