Skip to content

Instantly share code, notes, and snippets.

@caefer
Created March 21, 2011 21:21
Show Gist options
  • Select an option

  • Save caefer/880239 to your computer and use it in GitHub Desktop.

Select an option

Save caefer/880239 to your computer and use it in GitHub Desktop.
<?php
// you can not enable MyPlugin from MyPlugin!
// but you can enable AnotherPlugin from MyPlugin.
class MyPluginConfiguration extendssfPluginConfiguration
{
public function initialize()
{
$this->configuration->enablePlugins(array('AnotherPlugin'));
// ...
}
}
// UNTESTED!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment