Ai
1 Star 0 Fork 0

Bill li/configuration

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
test 577 Bytes
一键复制 编辑 原始数据 按行查看 历史
Bill li 提交于 2018-06-01 10:32 +08:00 . Nice
#!/usr/bin/env php
<?php
require __DIR__ . '/vendor/autoload.php';
use Ofcold\Configuration\LoaderConfiguration;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Config\Repository;
$loader = new LoaderConfiguration(
$config = new Repository,
new Filesystem
);
$loader->addNamespace('test', __DIR__ . '/tests/config');
print_r(json_encode($config->all()));
print_r($config->get('test::test.foo') . "\r\n");
$loader->addNamespaceOverrides('test', __DIR__ . '/tests/overrides');
print_r(json_encode($config->all()));
print_r($config->get('test::test.foo') . "\r\n");
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/git-ofcold-rep/configuration.git
git@gitee.com:git-ofcold-rep/configuration.git
git-ofcold-rep
configuration
configuration
master

搜索帮助