You are here

public function Ftp::__construct in Flysystem 3.x

Same name and namespace in other branches
  1. 8 src/Flysystem/Ftp.php \Drupal\flysystem\Flysystem\Ftp::__construct()
  2. 7 src/Flysystem/Ftp.php \Drupal\flysystem\Flysystem\Ftp::__construct()
  3. 2.0.x src/Flysystem/Ftp.php \Drupal\flysystem\Flysystem\Ftp::__construct()
  4. 3.0.x src/Flysystem/Ftp.php \Drupal\flysystem\Flysystem\Ftp::__construct()

Constructs an Ftp object.

Parameters

array $configuration: Plugin configuration array.

File

src/Flysystem/Ftp.php, line 36

Class

Ftp
Drupal plugin for the "FTP" Flysystem adapter.

Namespace

Drupal\flysystem\Flysystem

Code

public function __construct(array $configuration) {
  $this->configuration = $configuration;
  if (empty($this->configuration['host'])) {
    $this->configuration['host'] = '127.0.0.1';
  }
}