File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1717 "drush/drush" : " ^12.4.3" ,
1818 "oomphinc/composer-installers-extender" : " ^2.0" ,
1919 "vlucas/phpdotenv" : " ^5.1" ,
20- "webflo/drupal-finder" : " ^1.2 "
20+ "webflo/drupal-finder" : " ^1.3 "
2121 },
2222 "require-dev" : {
2323 "drupal/core-dev" : " ^10.2.0" ,
Original file line number Diff line number Diff line change 1212use Drupal \Core \Site \Settings ;
1313use Drupal \Core \Site \SettingsEditor ;
1414use DrupalFinder \DrupalFinder ;
15+ use DrupalFinder \DrupalFinderComposerRuntime ;
1516use Symfony \Component \Filesystem \Filesystem ;
16- use Symfony \Component \Filesystem \Path ;
1717
1818class ScriptHandler {
1919
2020 public static function createRequiredFiles (Event $ event ) {
2121 $ fs = new Filesystem ();
22- $ drupalFinder = new DrupalFinder ();
23- $ drupalFinder ->locateRoot (getcwd ());
22+ $ drupalFinder = new DrupalFinderComposerRuntime ();
2423 $ drupalRoot = $ drupalFinder ->getDrupalRoot ();
2524
2625 $ dirs = [
@@ -44,7 +43,7 @@ public static function createRequiredFiles(Event $event) {
4443 require_once $ drupalRoot . '/core/includes/install.inc ' ;
4544 new Settings ([]);
4645 $ settings ['settings ' ]['config_sync_directory ' ] = (object ) [
47- 'value ' => Path:: makeRelative ( $ drupalFinder -> getComposerRoot () . ' /config/sync ', $ drupalRoot ) ,
46+ 'value ' => ' .. /config/sync ' ,
4847 'required ' => TRUE ,
4948 ];
5049 SettingsEditor::rewrite ($ drupalRoot . '/sites/default/settings.php ' , $ settings );
You can’t perform that action at this time.
0 commit comments