mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-12 11:25:35 +08:00
Refactor stage execution to use method references for improved clarity
This commit is contained in:
@@ -211,9 +211,9 @@ class PhpExtensionPackage extends Package
|
|||||||
{
|
{
|
||||||
$env = $this->getSharedExtensionEnv();
|
$env = $this->getSharedExtensionEnv();
|
||||||
|
|
||||||
$this->runStage('phpizeForUnix', ['env' => $env]);
|
$this->runStage([$this, 'phpizeForUnix'], ['env' => $env]);
|
||||||
$this->runStage('configureForUnix', ['env' => $env]);
|
$this->runStage([$this, 'configureForUnix'], ['env' => $env]);
|
||||||
$this->runStage('makeForUnix', ['env' => $env]);
|
$this->runStage([$this, 'makeForUnix'], ['env' => $env]);
|
||||||
|
|
||||||
// process *.so file
|
// process *.so file
|
||||||
$soFile = BUILD_MODULES_PATH . '/' . $this->getExtensionName() . '.so';
|
$soFile = BUILD_MODULES_PATH . '/' . $this->getExtensionName() . '.so';
|
||||||
|
|||||||
Reference in New Issue
Block a user