protected onCreate ( mixed[] $config = [] ) : League\Flysystem\AdapterInterface | ||
$config | mixed[] | |
return | League\Flysystem\AdapterInterface |
protected function onCreate($config = [])
{
$client = $this->getClient();
$class = $this->getClass();
$client = new $client($this->param($config, 'accessToken'), $this->param($config, 'appSecret'));
return new $class($client, $this->param($config, 'prefix'));
}