Plugin load and unload methods

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

No files matched your search

+8 -2
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