✏️ 编辑:class-config.php
路径:
/home/forge/kingkrunch.com/wp/wp-content/plugins/simple-history/inc/class-config.php
大小:930 B · 修改:2026-09-25 00:42:29 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
<?php /** * Config class, * from https://github.com/szepeviktor/starter-plugin/blob/master/src/Config.php */ // phpcs:disable namespace Simple_History; /** * Immutable configuration. */ final class Config { /** @var array<string, mixed>|null */ private static $container; /** * @param array<string, mixed> $container * @return void */ public static function init(array $container) { if (isset(self::$container)) { return; } self::$container = $container; } /** * @return mixed */ public static function get(string $name) { if (! isset(self::$container) || ! array_key_exists($name, self::$container)) { return null; } return self::$container[$name]; } /** * @return array<string, mixed> */ public static function all() { return self::$container; } }
💾 保存
取消
保存为 UTF-8,换行统一为 LF