1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-11 09:32:55 +00:00
composer/bin/compile
2013-03-10 13:58:49 +01:00

17 lines
362 B
PHP
Executable file

#!/usr/bin/env php
<?php
require __DIR__.'/../src/bootstrap.php';
use Composer\Compiler;
error_reporting(-1);
ini_set('display_errors', 1);
try {
$compiler = new Compiler();
$compiler->compile();
} catch (\Exception $e) {
echo 'Failed to compile phar: ['.get_class($e).'] '.$e->getMessage().' at '.$e->getFile().':'.$e->getLine();
exit(1);
}