Skip to content

Commit 4dded53

Browse files
authored
Update file_temp_path name according to Drupal deprecation. https://www.drupal.org/node/3039255 (#81)
1 parent 5d21a9e commit 4dded53

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

RoboFileBase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ abstract class RoboFileBase extends \Robo\Tasks {
4747
protected $application_root = "/code/web";
4848
protected $file_public_path = '/shared/public';
4949
protected $file_private_path = '/shared/private';
50-
protected $file_temporary_path = '/shared/tmp';
50+
protected $file_temp_path = '/shared/tmp';
5151
protected $services_yml = "web/sites/default/services.yml";
5252
protected $settings_php = "web/sites/default/settings.php";
5353

@@ -199,7 +199,7 @@ public function buildMake($flags = '') {
199199
* Set the owner and group of all files in the files dir to the web user.
200200
*/
201201
public function buildSetFilesOwner() {
202-
foreach ([$this->file_public_path, $this->file_private_path, $this->file_temporary_path] as $path) {
202+
foreach ([$this->file_public_path, $this->file_private_path, $this->file_temp_path] as $path) {
203203
$this->say("Ensuring all directories exist.");
204204
$this->_exec("mkdir -p $path");
205205
$this->say("Setting files directory owner.");

src/Handler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public function generateSettings()
161161
" 'namespace' => getenv('DATABASE_NAMESPACE') ?: 'Drupal\\\\Core\\\\Database\\\\Driver\\\\mysql',\n" .
162162
");\n" .
163163
"\$settings['file_private_path'] = getenv('PRIVATE_DIR') ?: '/shared/private';\n" .
164-
"\$settings['file_temporary_path'] = getenv('TMP_DIR') ?: '/shared/tmp';\n" .
164+
"\$settings['file_temp_path'] = getenv('TMP_DIR') ?: '/shared/tmp';\n" .
165165
"\$settings['hash_salt'] = getenv('HASH_SALT') ?: '" . str_replace(['+', '/', '='], ['-', '_', ''], base64_encode(random_bytes(55))) . "';\n" .
166166
"\$config_directories['sync'] = DRUPAL_ROOT . '/../config-export';\n" .
167167
"\$settings['shepherd_site_id'] = getenv('SHEPHERD_SITE_ID');\n" .

0 commit comments

Comments
 (0)