protected function FlysystemBridge::getFilesystemForScheme in Flysystem 7
Same name and namespace in other branches
- 8 src/FlysystemBridge.php \Drupal\flysystem\FlysystemBridge::getFilesystemForScheme()
- 3.x src/FlysystemBridge.php \Drupal\flysystem\FlysystemBridge::getFilesystemForScheme()
- 2.0.x src/FlysystemBridge.php \Drupal\flysystem\FlysystemBridge::getFilesystemForScheme()
- 3.0.x src/FlysystemBridge.php \Drupal\flysystem\FlysystemBridge::getFilesystemForScheme()
Returns the filesystem for a given scheme.
Parameters
string $scheme: The scheme.
Return value
\League\Flysystem\FilesystemInterface The filesystem for the scheme.
1 call to FlysystemBridge::getFilesystemForScheme()
File
- src/
FlysystemBridge.php, line 84 - Contains \Drupal\flysystem\FlysystemBridge.
Class
- FlysystemBridge
- An adapter for Flysystem to \DrupalStreamWrapperInterface.
Namespace
Drupal\flysystemCode
protected function getFilesystemForScheme($scheme) {
if (!isset(static::$filesystems[$scheme])) {
static::$filesystems[$scheme] = flysystem_factory()
->getFilesystem($scheme);
static::$config[$scheme] = static::$defaultConfiguration;
static::$config[$scheme]['permissions']['dir']['public'] = 0777;
static::registerPlugins($scheme, static::$filesystems[$scheme]);
}
return static::$filesystems[$scheme];
}