Skip to content

Commit

Permalink
[#944] Updated ScriptHandler to follow the latest version from drupal…
Browse files Browse the repository at this point in the history
…-project.
  • Loading branch information
AlexSkrypnyk committed Mar 16, 2024
1 parent fedf8ed commit b82b274
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions scripts/composer/ScriptHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,7 @@ public static function createRequiredFiles(Event $event) {
'value' => Path::makeRelative($drupalFinder->getComposerRoot() . '/config/sync', $drupalRoot),
'required' => TRUE,
];

if (class_exists(SettingsEditor::class)) {
SettingsEditor::rewrite($drupalRoot . '/sites/default/settings.php', $settings);
}
else {
drupal_rewrite_settings($settings, $drupalRoot . '/sites/default/settings.php');
}

SettingsEditor::rewrite($drupalRoot . '/sites/default/settings.php', $settings);
$fs->chmod($drupalRoot . '/sites/default/settings.php', 0666);
$event->getIO()->write("Created a sites/default/settings.php file with chmod 0666");
}
Expand Down

0 comments on commit b82b274

Please sign in to comment.