Search for autoload.php in different locations
This commit is contained in:
parent
edf8b9a368
commit
738031ec5d
6
bin/dmg
Normal file → Executable file
6
bin/dmg
Normal file → Executable file
|
@ -7,7 +7,11 @@ use Opdavies\DrupalModuleGenerator\Service\TestNameConverter;
|
|||
use Symfony\Component\Console\Application;
|
||||
use Symfony\Component\Finder\Finder;
|
||||
|
||||
require_once __DIR__.'/../vendor/autoload.php';
|
||||
if (file_exists(__DIR__.'/../../../autoload.php')) {
|
||||
require __DIR__.'/../../../autoload.php';
|
||||
} else {
|
||||
require __DIR__.'/../vendor/autoload.php';
|
||||
}
|
||||
|
||||
$app = new Application();
|
||||
|
||||
|
|
Loading…
Reference in a new issue