mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
update auto_loader cache file when updating (#7255)
This commit is contained in:
@@ -33,7 +33,10 @@ class auto_loader {
|
||||
public function __construct($project_path = '') {
|
||||
//classes must be loaded before this object is registered
|
||||
if (!$this->load_cache()) {
|
||||
//cache miss so load them
|
||||
$this->reload_classes($project_path);
|
||||
//update the cache after loading classes array
|
||||
$this->update_cache();
|
||||
}
|
||||
//register this object to load any unknown classes
|
||||
spl_autoload_register(array($this, 'loader'));
|
||||
@@ -106,8 +109,6 @@ class auto_loader {
|
||||
$this->classes[basename($path, '.php')] = $path;
|
||||
}
|
||||
|
||||
//update the cache after loading classes array
|
||||
$this->update_cache();
|
||||
}
|
||||
|
||||
private function loader($class_name) : bool {
|
||||
|
||||
Reference in New Issue
Block a user