mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-20 15:15:35 +08:00
add environment variables support (#255)
This commit is contained in:
23
src/ZM/Config/EnvironmentInterface.php
Normal file
23
src/ZM/Config/EnvironmentInterface.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace ZM\Config;
|
||||
|
||||
interface EnvironmentInterface
|
||||
{
|
||||
/**
|
||||
* 设置环境变量
|
||||
*/
|
||||
public function set(string $name, mixed $value): self;
|
||||
|
||||
/**
|
||||
* 获取环境变量
|
||||
*/
|
||||
public function get(string $name, mixed $default = null): mixed;
|
||||
|
||||
/**
|
||||
* 获取所有环境变量
|
||||
*/
|
||||
public function getAll(): array;
|
||||
}
|
||||
Reference in New Issue
Block a user