DownloadYaml Config Service Provider
Yaml config service provider for Silex.
Currently supports imports statements and parameters substitution. See an example
from Silex Enhanced.
...
$app->register(
new \Fluency\Silex\Provider\YamlConfigServiceProvider(
array(
'%base_path%' => BASEPATH, '%log_path%' => BASEPATH . '/var/logs',
'%cache_path%' => BASEPATH . '/var/cache'
)
),
array(
'config.dir' => BASEPATH . '/app/Resources/config',
'config.files' => array('application.yml', 'routing.yml', 'security.yml'),
)
);
...
|