sfDefineEnvironmentConfigCachingPlugin - 0.0.2

Provides a convinience of handling original yamls for defining environmental configurations.

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Releases Changelog Contribute
sfDefineEnvironmentConfigCachingPlugin 0.0.2alpha for sf 1.4sf 1.3sf 1.2 MIT
Plugin image
1
user
Sign-in
to change
your status

This plugin provides a convinience of handling original yamls for defining environmental configurations. It caches configurations handled by sfDefineEnvironmentConfigHandler by according to the parameter "cache" in config/config_handlers.yml.

sfDefineEnvironmentConfigCachingPlugin

This plugin provides a convinience of handling original yamls for defining environmental configurations. It caches configurations handled by sfDefineEnvironmentConfigHandler by according to the parameter "cache" in config/config_handlers.yml.

Installation

  • Install the Plugin

    $ symfony plugin:install sfDefineEnvironmentConfigCachingPlugin
    
  • Create your original yml.

    ex. config/foobar.yml

    all:
      .settings:
        value: foo
     
    prod:
      .settings:
        value: bar
  • Create config_handlers.yml and set cache enabled.

    ex. config/config_handlers.yml

    config/foobar.yml:
      class: sfDefineEnvironmentConfigHandler
      param:
        # cache:  off   # disable cache (default true)
        prefix: fb_
  • Use configuration in your applications.

    $value = sfConfig::get('fb_value');

Developers

Name Status Email
gravatar Masato Hirai lead pj.tassam <<ta>> liam

License

Show source

Copyright (c) 2010 Masato Hirai

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.