protected onCreate ( mixed[] $config = [] ) : League\Flysystem\AdapterInterface | ||
$config | mixed[] | |
return | League\Flysystem\AdapterInterface |
protected function onCreate($config = [])
{
$class = $this->getClass();
return new $class(class_exists(S3Client::class) ? S3Client::factory($this->params($config)) : null, $this->param($config, 'bucket'), $this->param($config, 'prefix'), $this->param($config, 'options'));
}