forked from deblan/gist
1
0
Fork 0
gist/app/bootstrap.php.d/10-config.php

15 lines
375 B
PHP

<?php
use Symfony\Component\Config\FileLocator;
use Symfony\Component\Yaml\Yaml;
$app['config.locator.path'] = $app['root_path'].'/app/config/';
$app['config.locator'] = function ($app) {
return new FileLocator($app['config.locator.path']);
};
$app['settings'] = $app->share(function ($app) {
return Yaml::parse($app['config.locator']->locate('config.yml'));
});