@@ -192,8 +192,6 @@ public function ensureDirectories() {
192192 * Clean config and files, then install Drupal and module dependencies.
193193 */
194194 public function buildInstall () {
195- $ this ->devConfigWriteable ();
196-
197195 // @TODO: When is this really used? Automated builds - can be random values.
198196 $ successful = $ this ->_exec ("$ this ->drush_cmd site:install " .
199197 $ this ->getDrupalProfile () .
@@ -207,9 +205,6 @@ public function buildInstall() {
207205 " --site-mail= \"" . $ this ->config ['site ' ]['mail ' ] . "\"" )
208206 ->wasSuccessful ();
209207
210- // Re-set settings.php permissions.
211- $ this ->devConfigReadOnly ();
212-
213208 $ this ->checkFail ($ successful , 'drush site:install failed. ' );
214209
215210 $ this ->devCacheRebuild ();
@@ -338,6 +333,15 @@ public function configImport() {
338333 $ this ->checkFail ($ successful , 'Config import failed. ' );
339334 }
340335
336+ /**
337+ * Config import backwards compatibility for restore/upgrade.
338+ *
339+ * @deprecated To be removed once all apps move to D9.
340+ */
341+ public function configImportPlus () {
342+ $ this ->configImport ();
343+ }
344+
341345 /**
342346 * Exports Drupal configuration.
343347 *
@@ -370,7 +374,6 @@ public function configExportOld(): void {
370374 * Turns on twig debug mode, autoreload on and caching off.
371375 */
372376 public function devTwigDebugEnable () {
373- $ this ->devConfigWriteable ();
374377 $ this ->taskReplaceInFile ($ this ->services_yml )
375378 ->from ('debug: false ' )
376379 ->to ('debug: true ' )
@@ -384,7 +387,6 @@ public function devTwigDebugEnable() {
384387 ->to ('cache: false ' )
385388 ->run ();
386389 $ this ->devAggregateAssetsDisable ();
387- $ this ->devConfigReadOnly ();
388390 $ this ->say ('Clearing Drupal cache... ' );
389391 $ this ->devCacheRebuild ();
390392 $ this ->say ('Done. Twig debugging has been enabled ' );
@@ -394,7 +396,6 @@ public function devTwigDebugEnable() {
394396 * Turn off twig debug mode, autoreload off and caching on.
395397 */
396398 public function devTwigDebugDisable () {
397- $ this ->devConfigWriteable ();
398399 $ this ->taskReplaceInFile ($ this ->services_yml )
399400 ->from ('debug: true ' )
400401 ->to ('debug: false ' )
@@ -407,7 +408,6 @@ public function devTwigDebugDisable() {
407408 ->from ('c: false ' )
408409 ->to ('cache: true ' )
409410 ->run ();
410- $ this ->devConfigReadOnly ();
411411 $ this ->say ('Clearing Drupal cache... ' );
412412 $ this ->devCacheRebuild ();
413413 $ this ->say ('Done. Twig debugging has been disabled ' );
@@ -437,26 +437,6 @@ public function devAggregateAssetsEnable() {
437437 $ this ->say ('Asset Aggregation is now enabled. ' );
438438 }
439439
440- /**
441- * Make config files write-able.
442- */
443- public function devConfigWriteable () {
444- $ this ->setPermissions ("$ this ->application_root /sites/default/services.yml " , '0664 ' );
445- $ this ->setPermissions ("$ this ->application_root /sites/default/settings.php " , '0664 ' );
446- $ this ->setPermissions ("$ this ->application_root /sites/default/settings.local.php " , '0664 ' );
447- $ this ->setPermissions ("$ this ->application_root /sites/default " , '0775 ' );
448- }
449-
450- /**
451- * Make config files read only.
452- */
453- public function devConfigReadOnly () {
454- $ this ->setPermissions ("$ this ->application_root /sites/default/services.yml " , '0444 ' );
455- $ this ->setPermissions ("$ this ->application_root /sites/default/settings.php " , '0444 ' );
456- $ this ->setPermissions ("$ this ->application_root /sites/default/settings.local.php " , '0444 ' );
457- $ this ->setPermissions ("$ this ->application_root /sites/default " , '0555 ' );
458- }
459-
460440 /**
461441 * Imports a database, updates the admin user password and applies updates.
462442 *
0 commit comments