WS_OK_7.4.33 HEX
HEX
Server: nginx/1.21.4
System: Linux v12674 6.8.0-85-generic #85-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 18 15:26:59 UTC 2025 x86_64
User: endtheignorance (1014)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v12674/lcasomersetsa/public_html/wp-content/plugins/simple-history/inc/class-config.php
<?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;
    }
}