mirror of
http://124.126.16.154:8888/singularity/HyperfDevelopmentKitCore.git
synced 2026-01-15 05:55:12 +08:00
feat: 新增SP相关配置的枚举
- 添加 EnvConfiguration 接口,定义开发和生产环境常量 - 添加 ServiceProviderConfiguration 接口,继承环境和站点配置接口 - 添加 SiteConfiguration接口,定义中国和北美站点常量 Signed-off-by: 李东云 <dongyu.li@luxcreo.ai>
This commit is contained in:
16
src/Enumerations/Sp/EnvConfiguration.php
Normal file
16
src/Enumerations/Sp/EnvConfiguration.php
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* EnvConfiguration.php@Core
|
||||||
|
*
|
||||||
|
* @author 李东云 <Dongyun.Li@LuxCreo.Ai>
|
||||||
|
* Powered by PhpStorm
|
||||||
|
* Created on 2025/7/11
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace Singularity\HDK\Core\Enumerations\Sp;
|
||||||
|
|
||||||
|
interface EnvConfiguration
|
||||||
|
{
|
||||||
|
public const DEVELOPMENT = 'development';
|
||||||
|
public const PRODUCTION = 'production';
|
||||||
|
}
|
||||||
12
src/Enumerations/Sp/ServiceProviderConfiguration.php
Normal file
12
src/Enumerations/Sp/ServiceProviderConfiguration.php
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* ServiceProviderConfiguration.php@Core
|
||||||
|
*
|
||||||
|
* @author 李东云 <Dongyun.Li@LuxCreo.Ai>
|
||||||
|
* Powered by PhpStorm
|
||||||
|
* Created on 2025/7/11
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace Singularity\HDK\Core\Enumerations\Sp;
|
||||||
|
|
||||||
|
interface ServiceProviderConfiguration extends EnvConfiguration, SiteConfiguration {}
|
||||||
16
src/Enumerations/Sp/SiteConfiguration.php
Normal file
16
src/Enumerations/Sp/SiteConfiguration.php
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* SiteConfigration.php@Core
|
||||||
|
*
|
||||||
|
* @author 李东云 <Dongyun.Li@LuxCreo.Ai>
|
||||||
|
* Powered by PhpStorm
|
||||||
|
* Created on 2025/7/11
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace Singularity\HDK\Core\Enumerations\Sp;
|
||||||
|
|
||||||
|
interface SiteConfiguration
|
||||||
|
{
|
||||||
|
public const CN = 'CN';
|
||||||
|
public const NA = 'NA';
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user