-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sara McCutcheon
committed
Sep 9, 2016
1 parent
b588e6b
commit 411ec1b
Showing
9 changed files
with
360 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,23 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
|
||
require __DIR__ . '/../vendor/autoload.php'; | ||
$phar_path = \Phar::running(true); | ||
if ($phar_path) { | ||
include_once "$phar_path/vendor/autoload.php"; | ||
} else { | ||
if (file_exists(__DIR__ . '/../vendor/autoload.php')) { | ||
include_once __DIR__ . '/../vendor/autoload.php'; | ||
} elseif (file_exists(__DIR__ . '/../../autoload.php')) { | ||
include_once __DIR__ . '/../../autoload.php'; | ||
} | ||
} | ||
|
||
use Pantheon\Terminus\Config; | ||
use Pantheon\Terminus\Runner; | ||
use Pantheon\Terminus\Terminus; | ||
|
||
$runner = new Runner(); | ||
$runner->run(); | ||
$config = new Config(); | ||
$terminus = new Terminus('Terminus', $config->get('version'), $config); | ||
$runner = new Runner(['application' => $terminus, 'config' => $config,]); | ||
$status_code = $runner->run($_SERVER['argv']); | ||
exit($status_code); |
Oops, something went wrong.