Add to composer.json
and install
{
"require": {
"it-blaster/config-bundle": "dev-master"
},
}
Add bundle to AppKernel.php
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new ItBlaster\ConfigBundle\ItBlasterConfigBundle(),
);
}
Build models
$ php app/console propel:build
Use get
method wherever you need
$value = Config::get('config_key', $request->getLocale());
Twig function:
{{ config('social_twitter_link', app.request.locale) }}