Bundle for Symfony to store the application settings in database table
Let Composer download and install the bundle by first adding it to your composer.json in your composer.json:
{
"require": {
"webmakers/symfony-setting-bundle": "dev-master"
}
}
and then running
// In shell
composer update webmakers/symfony-setting-bundle
Note that once we had a stable version tagged you should use a tagged release instead of the master branch.
// in app/AppKernel.php
public function registerBundles() {
$bundles = array(
// ...
new Webmakers\SettingBundle\WebmakersSettingBundle(),
);
// ...
return $bundles;
}
// In shell
php app/console doctrine:schema:update --force
$this->get('wm.setting')->getSetting('SETTING_NAME');
{{ get_setting('SETTING_NAME') }}