rsPluginLoaderPlugin

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Stats

Plugin Information Installation
rsPluginLoaderPlugin
Plugin image

rsPluginLoaderPlugin

this symfony plugin lets you manage your plugins in a yaml file.

you can define different plugins for each enviroment.

Installation

Git: http://github.com/digitalkaoz/rsPluginLoaderPlugin

Svn: https://svn.github.com/digitalkaoz/rsPluginLoaderPlugin.git

Usage

edit your ProjectConfiguration file first:

require_once dirname(__FILE__).'/../plugins/rsPluginLoaderPlugin/lib/rsPluginLoader.class.php';

create a plugins.yml file in your config folder:

all:
  - sfPropelPlugin
  - sfGuardPlugin

cli:
  - sfTaskExtraPlugin
  - sfPhpUnit2Plugin
dev:
  - fooPlugin

define the plugins you want to load for every environment. section all will be loaded everytime section dev will be loaded only in sf_environment dev section cli is active on console

the last step is to use the loader in your ProjectConfiguration:

//instead of using
//$this->enablePlugins(array(
//  'sfPropelPlugin',
//  'sfGuardPlugin'
//  ...
//));

//use this:
rsPluginLoader::load($this);

the rest is handled by the plugin loader! Done.