Move budget outside of the core

The budget planning feature is now a plugin
See: https://github.com/kanboard/plugin-budget
This commit is contained in:
Frederic Guillot
2015-09-13 16:56:51 -04:00
parent d400f7c5be
commit 4b6672d0b3
47 changed files with 20 additions and 1596 deletions

View File

@@ -28,4 +28,20 @@ abstract class PluginBase extends Base
{
return array();
}
/**
* Listen on internal events
*
* @access public
* @param string $event
* @param callable $callback
*/
public function on($event, $callback)
{
$container = $this->container;
$this->container['dispatcher']->addListener($event, function() use ($container, $callback) {
call_user_func($callback, $container);
});
}
}