function FileTransfer::__construct

Constructs a Drupal\Core\FileTransfer\FileTransfer object.

Parameters

string $jail: The full path where all file operations performed by this object will be restricted to. This prevents the FileTransfer classes from being able to touch other parts of the filesystem.

3 calls to FileTransfer::__construct()
FTP::__construct in core/lib/Drupal/Core/FileTransfer/FTP.php
Constructs a Drupal\Core\FileTransfer\FileTransfer object.
Local::__construct in core/lib/Drupal/Core/FileTransfer/Local.php
Constructs a Drupal\Core\FileTransfer\FileTransfer object.
SSH::__construct in core/lib/Drupal/Core/FileTransfer/SSH.php
Constructs a Drupal\Core\FileTransfer\FileTransfer object.
3 methods override FileTransfer::__construct()
FTP::__construct in core/lib/Drupal/Core/FileTransfer/FTP.php
Constructs a Drupal\Core\FileTransfer\FileTransfer object.
Local::__construct in core/lib/Drupal/Core/FileTransfer/Local.php
Constructs a Drupal\Core\FileTransfer\FileTransfer object.
SSH::__construct in core/lib/Drupal/Core/FileTransfer/SSH.php
Constructs a Drupal\Core\FileTransfer\FileTransfer object.

File

core/lib/Drupal/Core/FileTransfer/FileTransfer.php, line 76

Class

FileTransfer
Defines the base FileTransfer class.

Namespace

Drupal\Core\FileTransfer

Code

public function __construct($jail) {
  @trigger_error(__CLASS__ . ' is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. There is no replacement. Use composer to manage the code for your site. See https://www.drupal.org/node/3512364', E_USER_DEPRECATED);
  $this->jail = $jail;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.