sfAutoconfigPlugin - 0.2

Task to automaticaly configure your project when moving it to another server or context.

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
Show source

sfAutoconfig Plugin

The sfAutoconfigPlugin is a symfony plugin that provides a task to automaticaly configure your project when moving it to another server or context. It searches in dist files like app.yml-dist or index.php-dist for tags definied in a Yaml configuration file, replaces them and creates the final file.

Installation

  • Install the plugin $ symfony plugin:install sfAutoconfigPlugin

  • create the config file where you want (it can be out from your project), based on the autoconfig.yml file : autoconfig: YourTagName1: value YourTagName2: value

  • place your tags in your dist files , ex : view.yml-dist : default: http_metas: content-type: text/html metas: title: <%YourTagName1%>

  • run the task : php project:autoconfig yourpath/autoconfig.yml

So, when you work on a project locally, place all the specific config values as tags, place theses values in your autoconfig.yml, and when you migrate your project, just change theses values in only one file, and run the task.