modifs.mineures sans commentaires
This commit is contained in:
parent
23c3303b67
commit
16376a473a
|
@ -7,11 +7,13 @@ use nur\sery\StateException;
|
|||
|
||||
class launcher {
|
||||
static function launch(string $appClass, ...$args): int {
|
||||
$cmd = new Cmd([
|
||||
__DIR__."/../../lib/_launch.php",
|
||||
$appClass,
|
||||
...$args,
|
||||
]);
|
||||
global $_composer_bin_dir;
|
||||
if (isset($_composer_bin_dir)) {
|
||||
$launch_php = "$_composer_bin_dir/_launch.php";
|
||||
} else {
|
||||
$launch_php = __DIR__."/../../lib/_launch.php";
|
||||
}
|
||||
$cmd = new Cmd([$launch_php, $appClass, ...$args]);
|
||||
//$cmd->addRedir("null");
|
||||
$cmd->passthru($exitcode);
|
||||
return $exitcode;
|
||||
|
|
Loading…
Reference in New Issue