2017 © Pedro Peláez
 

symfony-bundle config-bundle

Symfony2 bundle, adds config list to Sonata

image

it-blaster/config-bundle

Symfony2 bundle, adds config list to Sonata

  • Wednesday, June 17, 2015
  • by etfostra
  • Repository
  • 5 Watchers
  • 0 Stars
  • 120 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

ConfigBundle

Build Status Scrutinizer Code Quality, (*1)

Installation

Add to composer.json and install ``` js { "require": { "it-blaster/config-bundle": "dev-master" }, }, (*2)


Add bundle to `AppKernel.php` ``` php <?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new ItBlaster\ConfigBundle\ItBlasterConfigBundle(), ); }

Build models ``` bash $ php app/console propel:build, (*3)


## Usage Use `get` method wherever you need ``` php $value = Config::get('config_key', $request->getLocale());

Twig function: twig {{ config('social_twitter_link', app.request.locale) }}, (*4)

The Versions