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.
Installs: 5 061
Dependents: 0
Suggesters: 1
Security: 0
Stars: 4
Watchers: 7
Forks: 1
Open Issues: 1
Requires
- php: >=5.4.0
- flint/tacker: ~0.6
- silex/silex: ~1.1
- symfony/yaml: ~2.8
Requires (Dev)
- fabpot/php-cs-fixer: @stable
- phpunit/phpunit: @stable
This package is not auto-updated.
Last update: 2021-06-11 23:36:50 UTC
README
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