Skip to content

Commit e070ac4

Browse files
author
cradu
committed
Updated cli tool to work with composer
1 parent 6a160c9 commit e070ac4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

bin/isotool

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ declare(strict_types=1);
66
use PhpIso\Cli\IsoTool;
77

88
(static function () {
9-
require_once dirname(__FILE__, 2) . '/vendor/autoload.php';
9+
foreach ([__DIR__ . '/../../../autoload.php', __DIR__ . '/../vendor/autoload.php'] as $file) {
10+
if (file_exists($file)) {
11+
require $file;
12+
break;
13+
}
14+
}
1015

1116
$application = new IsoTool();
1217
$application->run();

0 commit comments

Comments
 (0)