Plugin load and unload methods

This commit is contained in:
Steffen Schröder
2013-12-14 23:29:17 +01:00
parent fd3a3056f1
commit f4cbace654
7 changed files with 113 additions and 38 deletions

View File

@ -16,11 +16,17 @@ interface Plugin {
const PLUGIN_INTERFACE = __CLASS__;
/**
* Create a new plugin
* Load the plugin
*
* @param \ManiaControl\ManiaControl $maniaControl
* @return bool
*/
public function __construct(ManiaControl $maniaControl);
public function load(ManiaControl $maniaControl);
/**
* Unload the plugin and its resources
*/
public function unload();
/**
* Get plugin id