mirror of
https://github.com/Mibew/tray.git
synced 2025-01-22 18:10:34 +03:00
Replaced $initalize Plugin class member by static one
This commit is contained in:
parent
36547eeeca
commit
17369b2f14
@ -33,7 +33,7 @@ Class Phpunit_autotest_plugin_managerPlugin extends Plugin{
|
||||
}
|
||||
|
||||
public function __construct(){
|
||||
$this->initialized = true;
|
||||
self::$initialized = true;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ abstract Class Plugin {
|
||||
* failures
|
||||
* @var boolean
|
||||
*/
|
||||
public $initialized = false;
|
||||
public static $initialized = false;
|
||||
|
||||
/**
|
||||
* An array of plugin configuration
|
||||
|
@ -78,7 +78,7 @@ Class PluginManager {
|
||||
}
|
||||
// Add plugin to loading queue
|
||||
$plugin_instance = new $plugin_classname($plugin_config);
|
||||
if ($plugin_instance->initialized) {
|
||||
if ($plugin_classname::$initialized) {
|
||||
$loading_queue[$plugin_instance->getWeight() . "_" . $offset] = $plugin_instance;
|
||||
$offset++;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user