access === null) { throw new InvalidConfigException('The "access" 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(); } /** * @return QiniuAdapter */ protected function prepareAdapter() { return new QiniuAdapter( $this->access, $this->secret, $this->bucket, $this->domain ); } }