Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class ProjectConfiguration extends sfProjectConfiguration
{
public function setup()
{
$this->setupProjectPlugins();
}
/**
* Responsible for initiating any plugins and pointing vendor plugins
* to the "vendor" subdirectory
*/
protected function setupProjectPlugins()
{
$this->enableAllPluginsExcept(array('sfPropelPlugin'));
$vendorPlugins = array(
'ioMenuPlugin',
'sfCKEditorPlugin',
'vjCommentPlugin',
'sfThemePlugin',
'sfDoctrineSlotPlugin',
'sfFormExtraPlugin',
'sfFeed2Plugin',
'sfImageTransformPlugin',
'sfDoctrineGuardPlugin',
'isicsBreadcrumbsPlugin',
'sfDoctrineActAsTaggablePlugin',
'sfInlineObjectPlugin',
'ioEditableContentPlugin',
);
foreach ($vendorPlugins as $plugin)
{
$this->setPluginPath($plugin, sfConfig::get('sf_plugins_dir').'/vendor/'.$plugin);
}
$this->enablePlugins($vendorPlugins);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.