Skip to content

Commit

Permalink
Add composer autoload
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver committed Jun 14, 2022
1 parent 9bff44e commit 5c7cd2f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bin/graphlint
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
#!/usr/bin/env php
<?php
require __DIR__.'/../vendor/autoload.php';

declare(strict_types=1);

if (isset($GLOBALS['_composer_autoload_path'])) {
require_once $GLOBALS['_composer_autoload_path'];
} else {
require_once __DIR__.'/../vendor/autoload.php';
}

use Symfony\Component\Console\Application;
use Worksome\Graphlint\Commands\AnalyseCommand;
Expand Down

0 comments on commit 5c7cd2f

Please sign in to comment.