Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
e39a3284
Commit
e39a3284
authored
Apr 23, 2015
by
Jess
Browse files
Issue
#2121863
by googletorp, drubb, jhodgdon: There is no FileTransferInterface
parent
e9d6bd79
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/lib/Drupal/Core/Updater/Updater.php
View file @
e39a3284
...
...
@@ -9,7 +9,7 @@
use
Drupal\Component\Utility\Unicode
;
use
Drupal\Core\FileTransfer\FileTransferException
;
use
Drupal\Core\FileTransfer\FileTransfer
Interface
;
use
Drupal\Core\FileTransfer\FileTransfer
;
/**
* Defines the base class for Updaters used in Drupal.
...
...
@@ -167,7 +167,7 @@ protected function getInstallArgs($overrides = array()) {
/**
* Updates a Drupal project and returns a list of next actions.
*
* @param \Drupal\Core\FileTransfer\FileTransfer
Interface
$filetransfer
* @param \Drupal\Core\FileTransfer\FileTransfer $filetransfer
* Object that is a child of FileTransfer. Used for moving files
* to the server.
* @param array $overrides
...
...
@@ -226,7 +226,7 @@ public function update(&$filetransfer, $overrides = array()) {
/**
* Installs a Drupal project, returns a list of next actions.
*
* @param \Drupal\Core\FileTransfer\FileTransfer
Interface
$filetransfer
* @param \Drupal\Core\FileTransfer\FileTransfer $filetransfer
* Object that is a child of FileTransfer.
* @param array $overrides
* An array of settings to override defaults; see self::getInstallArgs().
...
...
@@ -264,7 +264,7 @@ public function install(&$filetransfer, $overrides = array()) {
/**
* Makes sure the installation parent directory exists and is writable.
*
* @param \Drupal\Core\FileTransfer\FileTransfer
Interface
$filetransfer
* @param \Drupal\Core\FileTransfer\FileTransfer $filetransfer
* Object which is a child of FileTransfer.
* @param string $directory
* The installation directory to prepare.
...
...
@@ -309,7 +309,7 @@ public function prepareInstallDirectory(&$filetransfer, $directory) {
/**
* Ensures that a given directory is world readable.
*
* @param \Drupal\Core\FileTransfer\FileTransfer
Interface
$filetransfer
* @param \Drupal\Core\FileTransfer\FileTransfer $filetransfer
* Object which is a child of FileTransfer.
* @param string $path
* The file path to make world readable.
...
...
@@ -327,16 +327,16 @@ public function makeWorldReadable(&$filetransfer, $path, $recursive = TRUE) {
/**
* Performs a backup.
*
* @param \Drupal\Core\FileTransfer\FileTransfer
Interface
$filetransfer
* @param \Drupal\Core\FileTransfer\FileTransfer $filetransfer
* Object which is a child of FileTransfer.
* @param string $from
* The file path to copy from.
* @param string $to
* The file path to copy to.
*
* @todo Not implemented
.
* @todo Not implemented
: https://www.drupal.org/node/2474355
*/
public
function
makeBackup
(
FileTransfer
Interface
$filetransfer
,
$from
,
$to
)
{
public
function
makeBackup
(
FileTransfer
$filetransfer
,
$from
,
$to
)
{
}
/**
...
...
core/lib/Drupal/Core/Updater/UpdaterFileTransferException.php
View file @
e39a3284
...
...
@@ -9,10 +9,10 @@
/**
* Defines a child class of Drupal\Core\Updater\UpdaterException that indicates
* a Drupal\Core\FileTransfer\FileTransfer
Interface
exception.
* a Drupal\Core\FileTransfer\FileTransfer exception.
*
* We have to catch Drupal\Core\FileTransfer\FileTransfer
Interface
exceptions
* and wrap those in t(), since Drupal\Core\FileTransfer\FileTransfer
Interface
* We have to catch Drupal\Core\FileTransfer\FileTransfer exceptions
* and wrap those in t(), since Drupal\Core\FileTransfer\FileTransfer
* is so low-level that it doesn't use any Drupal APIs and none of the strings
* are translated.
*/
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment