File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ class DrupalExtension extends CompilerExtension
52
52
public function loadConfiguration (): void
53
53
{
54
54
$ finder = new DrupalFinder ();
55
- $ finder ->locateRoot (getcwd ( ));
55
+ $ finder ->locateRoot (dirname ( $ GLOBALS [ ' autoloaderInWorkingDirectory ' ], 2 ));
56
56
$ this ->drupalRoot = $ finder ->getDrupalRoot ();
57
57
58
58
$ builder = $ this ->getContainerBuilder ();
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ class Bootstrap
62
62
public function register (): void
63
63
{
64
64
$ finder = new DrupalFinder ();
65
- $ finder ->locateRoot (getcwd ( ));
65
+ $ finder ->locateRoot (dirname ( $ GLOBALS [ ' autoloaderInWorkingDirectory ' ], 2 ));
66
66
$ this ->autoloader = include $ finder ->getVendorDir () . '/autoload.php ' ;
67
67
$ this ->drupalRoot = $ finder ->getDrupalRoot ();
68
68
You can’t perform that action at this time.
0 commit comments