modifs.mineures sans commentaires
This commit is contained in:
parent
23c3303b67
commit
16376a473a
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue