public function Ftp::__construct in Flysystem 8
Same name and namespace in other branches
- 7 src/Flysystem/Ftp.php \Drupal\flysystem\Flysystem\Ftp::__construct()
- 3.x src/Flysystem/Ftp.php \Drupal\flysystem\Flysystem\Ftp::__construct()
- 2.0.x src/Flysystem/Ftp.php \Drupal\flysystem\Flysystem\Ftp::__construct()
- 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\FlysystemCode
public function __construct(array $configuration) {
$this->configuration = $configuration;
if (empty($this->configuration['host'])) {
$this->configuration['host'] = '127.0.0.1';
}
}