mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-04 07:15:38 +08:00
refactor and add more linux extensions and libraries
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
use Psr\Log\LoggerInterface;
|
||||
use SPC\util\UnixShell;
|
||||
use ZM\Logger\ConsoleLogger;
|
||||
|
||||
/**
|
||||
@@ -95,3 +96,8 @@ function f_mkdir(string $directory, int $permissions = 0777, bool $recursive = f
|
||||
logger()->debug('Making new directory ' . ($recursive ? 'recursive' : '') . ': ' . $directory);
|
||||
return mkdir($directory, $permissions, $recursive);
|
||||
}
|
||||
|
||||
function shell(): UnixShell
|
||||
{
|
||||
return new UnixShell();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user