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