mirror of
https://gitnet.fr/deblan/gist.git
synced 2021-08-14 08:30:49 +02:00
15 lines
375 B
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'));
|
|
});
|