mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-22 02:46:30 +00:00
remove unneeded destruct methods as GC has higher performance (#6631)
Co-authored-by: Tim Fry <tim@voipstratus.com>
This commit is contained in:
@@ -23,16 +23,6 @@ class authentication {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when there are no references to a particular object
|
||||
* unset the variables used in the class
|
||||
*/
|
||||
public function __destruct() {
|
||||
foreach ($this as $key => $value) {
|
||||
unset($this->$key);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* validate uses authentication plugins to check if a user is authorized to login
|
||||
* @return array [plugin] => last plugin used to authenticate the user [authorized] => true or false
|
||||
|
||||
Reference in New Issue
Block a user