/** * Get the factory instance. * * @return \GrahamCampbell\Flysystem\FlysystemFactory * @static */ public static function getFactory() { return \GrahamCampbell\Flysystem\FlysystemManager::getFactory(); }
/** * 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); }