You are here

public function LocalPathProcessor::__construct in Flysystem 8

Same name and namespace in other branches
  1. 3.x src/PathProcessor/LocalPathProcessor.php \Drupal\flysystem\PathProcessor\LocalPathProcessor::__construct()
  2. 2.0.x src/PathProcessor/LocalPathProcessor.php \Drupal\flysystem\PathProcessor\LocalPathProcessor::__construct()
  3. 3.0.x src/PathProcessor/LocalPathProcessor.php \Drupal\flysystem\PathProcessor\LocalPathProcessor::__construct()

Constructs a LocalPathProcessor.

Parameters

string $scheme: The public scheme.

File

src/PathProcessor/LocalPathProcessor.php, line 38

Class

LocalPathProcessor
Defines a path processor to serve public files directly for the local adapter.

Namespace

Drupal\flysystem\PathProcessor

Code

public function __construct($scheme) {
  $this->scheme = $scheme;
  $settings = Settings::get('flysystem', []);
  $this->root = $settings[$scheme]['config']['root'];
}