File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 4848 "vimeo/psalm" : " ^4" ,
4949 "nette/finder" : " ^2.5" ,
5050 "symfony/finder" : " ^4.4 || ^5.3 || ^6" ,
51- "tomasvotruba/cognitive-complexity" : " ^0.1.1"
51+ "tomasvotruba/cognitive-complexity" : " ^0.1.1" ,
52+ "webflo/drupal-finder" : " ^1.3"
5253 },
5354 "autoload" : {
5455 "psr-4" : {
Original file line number Diff line number Diff line change 44
55namespace Wunderio \GrumPHP \Drupal ;
66
7- use DrupalFinder \DrupalFinder ;
7+ use DrupalFinder \DrupalFinderComposerRuntime ;
88use Drush \Drush ;
99use Nette \Utils \Finder ;
1010use PHPUnit \Framework \Test ;
@@ -26,8 +26,7 @@ class DrupalAutoloader extends DrupalAutoloaderBase {
2626 * Path to Drupal root.
2727 */
2828 public function register (string $ drupalRoot ): void {
29- $ finder = new DrupalFinder ();
30- $ finder ->locateRoot ($ drupalRoot );
29+ $ finder = new DrupalFinderComposerRuntime ();
3130
3231 $ drupalRoot = $ finder ->getDrupalRoot ();
3332 $ drupalVendorRoot = $ finder ->getVendorDir ();
You can’t perform that action at this time.
0 commit comments