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->endpoint === null) { throw new InvalidConfigException('The "endpoint" property must be set.'); } if ($this->bucket === null) { throw new InvalidConfigException('The "bucket" property must be set.'); } parent::init(); } /** * @return AliyuncsAdapter */ protected function prepareAdapter() { return new AliyuncsAdapter( $this->access, $this->secret, $this->endpoint, $this->isCName, $this->bucket ); } }