mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-09 01:45:36 +08:00
Move all interactive input to construct
This commit is contained in:
@@ -45,9 +45,9 @@ class PkgConfigCheck
|
||||
public function fix(): bool
|
||||
{
|
||||
ApplicationContext::set('elephant', true);
|
||||
$installer = new PackageInstaller(['dl-binary-only' => true]);
|
||||
$installer = new PackageInstaller(['dl-binary-only' => true], interactive: false);
|
||||
$installer->addInstallPackage('pkg-config');
|
||||
$installer->run(false, true);
|
||||
$installer->run(true);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user