mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
Add frankenphp building message for console output
This commit is contained in:
parent
d495455902
commit
a357510109
@ -29,6 +29,7 @@ trait frankenphp
|
|||||||
}
|
}
|
||||||
|
|
||||||
// process --with-frankenphp-app option
|
// process --with-frankenphp-app option
|
||||||
|
InteractiveTerm::setMessage('Building frankenphp: ' . ConsoleColor::yellow('processing --with-frankenphp-app option'));
|
||||||
$package->runStage([$this, 'processFrankenphpApp']);
|
$package->runStage([$this, 'processFrankenphpApp']);
|
||||||
|
|
||||||
// modules
|
// modules
|
||||||
@ -114,7 +115,6 @@ trait frankenphp
|
|||||||
$frankenphpAppPath = $package->getBuildOption('with-frankenphp-app');
|
$frankenphpAppPath = $package->getBuildOption('with-frankenphp-app');
|
||||||
|
|
||||||
if ($frankenphpAppPath) {
|
if ($frankenphpAppPath) {
|
||||||
InteractiveTerm::setMessage('Building frankenphp: ' . ConsoleColor::yellow('processing --with-frankenphp-app option'));
|
|
||||||
if (!is_dir($frankenphpAppPath)) {
|
if (!is_dir($frankenphpAppPath)) {
|
||||||
throw new WrongUsageException("The path provided to --with-frankenphp-app is not a valid directory: {$frankenphpAppPath}");
|
throw new WrongUsageException("The path provided to --with-frankenphp-app is not a valid directory: {$frankenphpAppPath}");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user