PHPackages                             opensky/runtime-config-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. opensky/runtime-config-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

opensky/runtime-config-bundle
=============================

This bundle provides a way to inject parameters into services at runtime by exposing a RuntimeParameterBag service, which functions exactly like Symfony2's own ParameterBags.

v2.1.0(4y ago)10949.5k↓50%16[2 issues](https://github.com/opensky/OpenSkyRuntimeConfigBundle/issues)1BSD-3-ClausePHPPHP ^8.0

Since Mar 17Pushed 4y ago5 watchersCompare

[ Source](https://github.com/opensky/OpenSkyRuntimeConfigBundle)[ Packagist](https://packagist.org/packages/opensky/runtime-config-bundle)[ Docs](https://github.com/opensky/OpenSkyRuntimeConfigBundle)[ RSS](/packages/opensky-runtime-config-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (6)Versions (15)Used By (1)

RuntimeConfigBundle
===================

[](#runtimeconfigbundle)

This bundle provides a way to inject parameters into services at runtime by exposing a RuntimeParameterBag service, which functions exactly like Symfony2's own ParameterBags.

As-is, Symfony2's service container is compiled and cached to disk, which makes it difficult to inject dynamic parameters. By exposing a ParameterBag service, we can inject values returned from its `get()` method into other services.

One reason you might want support for dynamic parameters would be to implement feature flags/flippers, as are used by [GitHub](https://github.com/blog/677-how-we-deploy-new-features) and [Flickr](http://code.flickr.com/blog/2009/12/02/flipping-out/). More info on the history behind this bundle may be found on the [symfony-devs](https://groups.google.com/forum/#!msg/symfony-devs/DKSoai_CWX4/qJVeFhL6GzAJ) mailing list.

Installation
------------

[](#installation)

### Step 1: Download OpenSkyRuntimeConfigBundle using composer:

[](#step-1-download-openskyruntimeconfigbundle-using-composer)

Require the bundle with composer:

```
$ composer require opensky/runtime-config-bundle
```

### Step 2: Enable the bundle

[](#step-2-enable-the-bundle)

Enable the bundle in the kernel:

```
