mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
28 lines
531 B
PHP
28 lines
531 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace SPC\builder\extension;
|
|
|
|
use SPC\builder\Extension;
|
|
use SPC\exception\FileSystemException;
|
|
use SPC\store\FileSystem;
|
|
use SPC\util\CustomExt;
|
|
|
|
#[CustomExt('ssh2')]
|
|
class ssh2 extends Extension
|
|
{
|
|
/**
|
|
* @throws FileSystemException
|
|
*/
|
|
public function patchBeforeConfigure(): bool
|
|
{
|
|
FileSystem::replaceFileRegex(
|
|
SOURCE_PATH . '/php-src/configure',
|
|
'/-lssh2/',
|
|
$this->getLibFilesString()
|
|
);
|
|
return true;
|
|
}
|
|
}
|