Skip to content

Commit

Permalink
fix: fixed entrypoint autoload path.
Browse files Browse the repository at this point in the history
  • Loading branch information
smeghead committed Jan 29, 2024
1 parent 5d390cc commit e1711a2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/php-vendor-credits
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@

declare(strict_types=1);

require __DIR__ . '/../vendor/autoload.php';
foreach ([__DIR__ . '/../../../autoload.php', __DIR__ . '/../vendor/autoload.php'] as $file) {
if (file_exists($file)) {
require $file;
break;
}
}

use Smeghead\PhpVendorCredits\Command\CreditsCommand;
use Symfony\Component\Console\Application;
Expand Down

0 comments on commit e1711a2

Please sign in to comment.