Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

Commit

Permalink
Re added CGR support
Browse files Browse the repository at this point in the history
  • Loading branch information
ajthinking committed May 7, 2018
1 parent ebd0466 commit 2726d5d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion stimpack
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
#!/usr/bin/env php
<?php

require __DIR__.'/vendor/autoload.php';
// Support both CGR and normal file structures
$cgrAutoload = __DIR__.'/../../../vendor/autoload.php';
$normalAutoload = __DIR__.'/vendor/autoload.php';

if(file_exists($cgrAutoload)) {
require $cgrAutoload;
} else {
require $normalAutoload;
}

$app = require_once __DIR__.'/bootstrap/app.php';
$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
Expand Down

0 comments on commit 2726d5d

Please sign in to comment.