PHP Classes
elePHPant
Icontem

Silex YAML Configuration Service Provider: Load and parse YAML configuration files for Silex

Recommend this page to a friend!
  Info   View files Documentation   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2015-04-21 (1 year ago) RSS 2.0 feedNot yet rated by the usersTotal: 99 All time: 8,469 This week: 978Up
Version License PHP version Categories
yaml-config-service 0.8MIT/X Consortium ...5.4PHP 5, Libraries, Configuration
Description Author

This class can load and parse YAML configuration files for Silex.

It extends the base Silex service provider class to load and parse and YAML file.

The configuration values read from the YAML file are merged into the current configuration values after parameter substitution.

Picture of Rafael Espinosa
  Performance   Level  
Name: Rafael Espinosa <contact>
Classes: 6 packages by
Country: Cuba Cuba
Innovation award
Innovation award
Nominee: 1x

Details

Yaml 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'),
    )
);
...

  Files folder image Files  
File Role Description
Files folder imagesrc (1 directory)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. Auxiliary data
Accessible without login Plain text file README.md Doc. Auxiliary data

  Files folder image Files  /  src  
File Role Description
Files folder imageSilex (1 directory)

  Files folder image Files  /  src  /  Silex  
File Role Description
Files folder imageProvider (1 file)

  Files folder image Files  /  src  /  Silex  /  Provider  
File Role Description
  Plain text file YamlConfigServiceProvider.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:99
This week:0
All time:8,469
This week:978Up