File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 17
17
"drush/drush" : " ^13@beta" ,
18
18
"oomphinc/composer-installers-extender" : " ^2.0" ,
19
19
"vlucas/phpdotenv" : " ^5.1" ,
20
- "webflo/drupal-finder" : " ^1.2 "
20
+ "webflo/drupal-finder" : " ^1.3 "
21
21
},
22
22
"require-dev" : {
23
23
"drupal/core-dev" : " ^11@alpha" ,
Original file line number Diff line number Diff line change 12
12
use Drupal \Core \Site \Settings ;
13
13
use Drupal \Core \Site \SettingsEditor ;
14
14
use DrupalFinder \DrupalFinder ;
15
+ use DrupalFinder \DrupalFinderComposerRuntime ;
15
16
use Symfony \Component \Filesystem \Filesystem ;
16
- use Symfony \Component \Filesystem \Path ;
17
17
18
18
class ScriptHandler {
19
19
20
20
public static function createRequiredFiles (Event $ event ) {
21
21
$ fs = new Filesystem ();
22
- $ drupalFinder = new DrupalFinder ();
23
- $ drupalFinder ->locateRoot (getcwd ());
22
+ $ drupalFinder = new DrupalFinderComposerRuntime ();
24
23
$ drupalRoot = $ drupalFinder ->getDrupalRoot ();
25
24
26
25
$ dirs = [
@@ -44,7 +43,7 @@ public static function createRequiredFiles(Event $event) {
44
43
require_once $ drupalRoot . '/core/includes/install.inc ' ;
45
44
new Settings ([]);
46
45
$ settings ['settings ' ]['config_sync_directory ' ] = (object ) [
47
- 'value ' => Path:: makeRelative ( $ drupalFinder -> getComposerRoot () . ' /config/sync ', $ drupalRoot ) ,
46
+ 'value ' => ' .. /config/sync ' ,
48
47
'required ' => TRUE ,
49
48
];
50
49
SettingsEditor::rewrite ($ drupalRoot . '/sites/default/settings.php ' , $ settings );
You can’t perform that action at this time.
0 commit comments