Merge branch 'release/3.1' into release/3.2

This commit is contained in:
Dylan K. Taylor 2018-10-07 17:48:19 +01:00
commit d259b2c9ee
2 changed files with 12 additions and 0 deletions

View File

@ -55,6 +55,12 @@ interface Plugin extends CommandExecutor{
public function isEnabled() : bool;
/**
* Called by the plugin manager when the plugin is enabled or disabled to inform the plugin of its enabled state.
*
* @internal This is intended for core use only and should not be used by plugins
* @see PluginManager::enablePlugin()
* @see PluginManager::disablePlugin()
*
* @param bool $enabled
*/
public function setEnabled(bool $enabled = true) : void;

View File

@ -93,6 +93,12 @@ abstract class PluginBase implements Plugin{
}
/**
* Called by the plugin manager when the plugin is enabled or disabled to inform the plugin of its enabled state.
*
* @internal This is intended for core use only and should not be used by plugins
* @see PluginManager::enablePlugin()
* @see PluginManager::disablePlugin()
*
* @param bool $enabled
*/
final public function setEnabled(bool $enabled = true) : void{