mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-06 08:15:39 +08:00
Refactor package stage handling and update class structures for improved flexibility
This commit is contained in:
@@ -4,6 +4,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace Package\Library;
|
||||
|
||||
use Package\Target\php;
|
||||
use StaticPHP\Attribute\Package\BeforeStage;
|
||||
use StaticPHP\Attribute\Package\Library;
|
||||
use StaticPHP\Attribute\PatchDescription;
|
||||
@@ -12,7 +13,7 @@ use StaticPHP\Package\TargetPackage;
|
||||
#[Library('postgresql')]
|
||||
class postgresql
|
||||
{
|
||||
#[BeforeStage('php', 'unix-configure', 'postgresql')]
|
||||
#[BeforeStage('php', [php::class, 'configureForUnix'], 'postgresql')]
|
||||
#[PatchDescription('Patch to avoid explicit_bzero detection issues on some systems')]
|
||||
public function patchBeforePHPConfigure(TargetPackage $package): void
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user