modifs.mineures sans commentaires

This commit is contained in:
Jephté Clain 2024-06-13 15:13:41 +04:00
parent 23c3303b67
commit 16376a473a
1 changed files with 7 additions and 5 deletions

View File

@ -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;