Skip to content

Commit

Permalink
wunderio#62 Fix Drupal autoloader base path detection.
Browse files Browse the repository at this point in the history
  • Loading branch information
hkirsman committed Mar 2, 2022
1 parent a112b4f commit 5a54029
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drupal-autoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@

use Wunderio\GrumPHP\Drupal\DrupalAutoloader;

$vendor_dir = dirname(dirname(dirname(__FILE__)));
$base_dir = dirname($vendor_dir);

$o = new DrupalAutoloader();
$o->register('/app');
$o->register($base_dir);

0 comments on commit 5a54029

Please sign in to comment.