public function FlysystemFactory::__construct in Flysystem 7
Same name and namespace in other branches
- 8 src/FlysystemFactory.php \Drupal\flysystem\FlysystemFactory::__construct()
- 3.x src/FlysystemFactory.php \Drupal\flysystem\FlysystemFactory::__construct()
- 2.0.x src/FlysystemFactory.php \Drupal\flysystem\FlysystemFactory::__construct()
- 3.0.x src/FlysystemFactory.php \Drupal\flysystem\FlysystemFactory::__construct()
Constructs a FlysystemFactory object.
Parameters
array $settings: The settings from settings.php.
File
- src/
FlysystemFactory.php, line 59 - Contains \Drupal\flysystem\FlysystemFactory.
Class
- FlysystemFactory
- A factory for Flysystem filesystems.
Namespace
Drupal\flysystemCode
public function __construct(array $settings) {
// Apply defaults.
foreach ($settings as $scheme => $configuration) {
$this->settings[$scheme] = $configuration + $this->defaults;
}
}