ofcold/component-config

通过持久化存储管理Ofcold配置。

1.1 2021-11-09 08:54 UTC

This package is auto-updated.

Last update: 2024-09-09 15:14:56 UTC


README

通过持久化存储管理Promise配置。

安装方法

composer require ofcold/component-config

使用方法

$config = new Ofcold\Component\Config\Repository

// Set initial configuration items
$config->addNamespace('your-config-path');

// Add a namespace to configuration.
$config->addNamespace(__DIR__ '/your-path/config', 'user');

// Get a config item.
$config->get('foo');

// Get a namespace config item.
$config->get('user::foo.bar');

API