Skip to content

Commit

Permalink
Load autoload.php from correct location(s)
Browse files Browse the repository at this point in the history
  • Loading branch information
bakerkretzmar committed Nov 11, 2022
1 parent 87412ef commit 39ce3af
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion jigsaw
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@

define('JIGSAW_START', microtime(true));

require __DIR__ . '/vendor/autoload.php';
if (file_exists(__DIR__ . '/vendor/autoload.php')) {
require __DIR__ . '/vendor/autoload.php';
}

if (file_exists(getcwd() . '/vendor/autoload.php')) {
require getcwd() . '/vendor/autoload.php';
}

$app = new TightenCo\Jigsaw\Container;

Expand Down

0 comments on commit 39ce3af

Please sign in to comment.