You are here

public function FlysystemFactory::__construct in Flysystem 7

Same name and namespace in other branches
  1. 8 src/FlysystemFactory.php \Drupal\flysystem\FlysystemFactory::__construct()
  2. 3.x src/FlysystemFactory.php \Drupal\flysystem\FlysystemFactory::__construct()
  3. 2.0.x src/FlysystemFactory.php \Drupal\flysystem\FlysystemFactory::__construct()
  4. 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\flysystem

Code

public function __construct(array $settings) {

  // Apply defaults.
  foreach ($settings as $scheme => $configuration) {
    $this->settings[$scheme] = $configuration + $this->defaults;
  }
}