Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/kzykhys/Ciconia
Browse files Browse the repository at this point in the history
  • Loading branch information
kzykhys committed Nov 7, 2013
2 parents c251e7c + 88e7766 commit 3ae3a53
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
17 changes: 15 additions & 2 deletions bin/ciconia
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,20 @@ if (PHP_SAPI !== 'cli') {
echo 'Ciconia command should be run on the CLI environment.' . PHP_EOL;
}

require __DIR__ . '/../vendor/autoload.php';
$paths = [
// Top-level package.
__DIR__ . '/../vendor/autoload.php',

// Included as a dependency.
__DIR__ . '/../../../autoload.php',
];

foreach($paths as $path) {
if (file_exists($path)) {
require $path;
break;
}
}

$app = new Application('Ciconia', \Ciconia\Ciconia::VERSION);
$app->run();
$app->run();
17 changes: 15 additions & 2 deletions bin/compile
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,21 @@ if (PHP_SAPI !== 'cli') {
die('Compile command must be run on the CLI environment.');
}

require __DIR__ . '/../vendor/autoload.php';
$paths = [
// Top-level package.
__DIR__ . '/../vendor/autoload.php',

// Included as a dependency.
__DIR__ . '/../../../autoload.php',
];

foreach($paths as $path) {
if (file_exists($path)) {
require $path;
break;
}
}

$app = new Application('Ciconia Compiler', \Ciconia\Ciconia::VERSION);
$app->add(new CompileCommand());
$app->run();
$app->run();

0 comments on commit 3ae3a53

Please sign in to comment.