Remove daux.phar

This commit is contained in:
Stéphane Goetz
2017-10-18 21:15:35 +02:00
parent 0270e14121
commit 0d3e366277
8 changed files with 7 additions and 255 deletions

View File

@ -10,15 +10,8 @@ function loadApp() {
if (file_exists(__DIR__ . '/../vendor/autoload.php')) {
return require_once __DIR__ . '/../vendor/autoload.php';
}
// Loaded in the project itself, when vendor isn't installed
if (file_exists(__DIR__ . '/../daux.phar')) {
define('PHAR_DIR', __DIR__ . '/..');
return require_once 'phar://' . __DIR__ . '/../daux.phar/vendor/autoload.php';
}
throw new Exception('Impossible to load Daux, missing vendor/ or daux.phar');
throw new Exception('Impossible to load Daux, missing vendor/');
}
$loader = loadApp();