keiii/silex-yaml-config

This package is abandoned and no longer maintained. No replacement package was suggested.

YAML config service provider.

2.4 2016-09-08 14:30 UTC

This package is not auto-updated.

Last update: 2023-03-04 10:59:57 UTC


README

Provides symfony like config style for silex application.

Installation

composer require keiii/silex-yaml-config

Usage

<?php
$app->register(new \KEIII\YamlConfigServiceProvider\YamlConfigServiceProvider(), [
    'config.path' => __DIR__.'/config',
    // 'config.cache_path' => '/var/tmp',
    // 'config.replacements' => ['root_path' => __DIR__],
    // 'config.env' => 'dev',
    // 'config.index' => 'config.yml',
    // 'config.loader' => LoaderInterface,
]);
$app['config']['key']; // value;