Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3485117
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupal-3485117
Commits
e39a3284
Commit
e39a3284
authored
9 years ago
by
Jess
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2121863
by googletorp, drubb, jhodgdon: There is no FileTransferInterface
parent
e9d6bd79
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/lib/Drupal/Core/Updater/Updater.php
+8
-8
8 additions, 8 deletions
core/lib/Drupal/Core/Updater/Updater.php
core/lib/Drupal/Core/Updater/UpdaterFileTransferException.php
+3
-3
3 additions, 3 deletions
.../lib/Drupal/Core/Updater/UpdaterFileTransferException.php
with
11 additions
and
11 deletions
core/lib/Drupal/Core/Updater/Updater.php
+
8
−
8
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
)
{
}
/**
...
...
This diff is collapsed.
Click to expand it.
core/lib/Drupal/Core/Updater/UpdaterFileTransferException.php
+
3
−
3
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.
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment