/** * Get the configuration for a connection. * * @param string $name * @throws \InvalidArgumentException * @return array * @static */ public static function getConnectionConfig($name) { return \GrahamCampbell\Flysystem\FlysystemManager::getConnectionConfig($name); }
/** * Get the cache client. * * @param string[] $config * * @return \League\Flysystem\AdapterInterface */ protected function getClient(array $config) { $name = array_get($config, 'adapter'); $config = $this->manager->getConnectionConfig($name); return $this->manager->getFactory()->createAdapter($config); }