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 { class launcher {
static function launch(string $appClass, ...$args): int { static function launch(string $appClass, ...$args): int {
$cmd = new Cmd([ global $_composer_bin_dir;
__DIR__."/../../lib/_launch.php", if (isset($_composer_bin_dir)) {
$appClass, $launch_php = "$_composer_bin_dir/_launch.php";
...$args, } else {
]); $launch_php = __DIR__."/../../lib/_launch.php";
}
$cmd = new Cmd([$launch_php, $appClass, ...$args]);
//$cmd->addRedir("null"); //$cmd->addRedir("null");
$cmd->passthru($exitcode); $cmd->passthru($exitcode);
return $exitcode; return $exitcode;