dafiti/config-service-provider

Based Flint/Tacker config service provider for Silex

This package's canonical repository appears to be gone and the package has been frozen as a result.

0.1.0 2015-12-10 20:21 UTC

This package is not auto-updated.

Last update: 2021-06-11 23:36:50 UTC


README

Build Status Scrutinizer Code Quality Code Coverage HHVM Latest Stable Version Total Downloads License

Based Flint/Tacker config service provider for Silex

Instalation

The package is available on Packagist. Autoloading is PSR-4 compatible.

{
    "require": {
        "dafiti/config-service-provider": "dev-master"
    }
}

Usage

use Silex\Application;
use Dafiti\Silex\ConfigServiceProvider;

$app = new Application();
$app->register(new ConfigServiceProvider(), [
    'config.paths' => [
        __DIR__ . '/config'
    ],
    'config.cache_dir' => __DIR__ . '/data/cache'
]);

$app['config']->load('app.ini');

echo $app['config']['shop'];

Inheriting

imports:
    - config.yml
    - config2.yml

License

MIT License