Add frankenphp building message for console output

This commit is contained in:
crazywhalecc 2026-02-26 10:02:16 +08:00
parent d495455902
commit a357510109
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680

View File

@ -29,6 +29,7 @@ trait frankenphp
}
// process --with-frankenphp-app option
InteractiveTerm::setMessage('Building frankenphp: ' . ConsoleColor::yellow('processing --with-frankenphp-app option'));
$package->runStage([$this, 'processFrankenphpApp']);
// modules
@ -114,7 +115,6 @@ trait frankenphp
$frankenphpAppPath = $package->getBuildOption('with-frankenphp-app');
if ($frankenphpAppPath) {
InteractiveTerm::setMessage('Building frankenphp: ' . ConsoleColor::yellow('processing --with-frankenphp-app option'));
if (!is_dir($frankenphpAppPath)) {
throw new WrongUsageException("The path provided to --with-frankenphp-app is not a valid directory: {$frankenphpAppPath}");
}