File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 10
10
use Composer \Script \Event ;
11
11
use Composer \Semver \Comparator ;
12
12
use Drupal \Core \Site \Settings ;
13
+ use Drupal \Core \Site \SettingsEditor ;
13
14
use DrupalFinder \DrupalFinder ;
14
15
use Symfony \Component \Filesystem \Filesystem ;
15
16
use Symfony \Component \Filesystem \Path ;
@@ -46,7 +47,7 @@ public static function createRequiredFiles(Event $event) {
46
47
'value ' => Path::makeRelative ($ drupalFinder ->getComposerRoot () . '/config/sync ' , $ drupalRoot ),
47
48
'required ' => TRUE ,
48
49
];
49
- drupal_rewrite_settings ( $ settings , $ drupalRoot . '/sites/default/settings.php ' );
50
+ SettingsEditor:: rewrite ( $ drupalRoot . '/sites/default/settings.php ' , $ settings );
50
51
$ fs ->chmod ($ drupalRoot . '/sites/default/settings.php ' , 0666 );
51
52
$ event ->getIO ()->write ("Created a sites/default/settings.php file with chmod 0666 " );
52
53
}
You can’t perform that action at this time.
0 commit comments