[ 'version' => TFSI_VERSION, 'text_domain' => TFSI_TEXT_DOMAIN, 'path' => TFSI_PATH, 'url' => TFSI_URL, ], 'database' => [ 'table_prefix' => 'tfsi_', ], 'woocommerce' => [ 'min_version' => '8.0', 'hpos_required' => true, ], ]; } public static function get(string $key, mixed $default = null): mixed { self::initialize(); return self::$config[$key] ?? $default; } public static function set(string $key, mixed $value): void { self::initialize(); self::$config[$key] = $value; } public static function has(string $key): bool { self::initialize(); return array_key_exists($key, self::$config); } public static function all(): array { self::initialize(); return self::$config; } public static function load(array $config): void { if (empty($config)) { throw new ConfigurationException('Configuration payload cannot be empty.'); } self::$config = array_replace_recursive(self::$config, $config); } }