mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
add putenv wrapper
This commit is contained in:
parent
8191444fe9
commit
99150e2cef
@ -110,6 +110,12 @@ function f_mkdir(string $directory, int $permissions = 0777, bool $recursive = f
|
|||||||
return mkdir($directory, $permissions, $recursive);
|
return mkdir($directory, $permissions, $recursive);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function f_putenv(string $env): bool
|
||||||
|
{
|
||||||
|
logger()->debug('Setting env: ' . $env);
|
||||||
|
return putenv($env);
|
||||||
|
}
|
||||||
|
|
||||||
function shell(?bool $debug = null): UnixShell
|
function shell(?bool $debug = null): UnixShell
|
||||||
{
|
{
|
||||||
return new UnixShell($debug);
|
return new UnixShell($debug);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user