mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
parent
13fc7e16f2
commit
a382a563d5
@ -19,14 +19,6 @@ class ClassLoader
|
|||||||
*/
|
*/
|
||||||
private $namespaces = array();
|
private $namespaces = array();
|
||||||
|
|
||||||
/**
|
|
||||||
* Detach spl autoload method from stack
|
|
||||||
*/
|
|
||||||
public function __destruct()
|
|
||||||
{
|
|
||||||
$this->unregister();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Register new namespace for directory
|
* Register new namespace for directory
|
||||||
*
|
*
|
||||||
@ -138,4 +130,12 @@ class ClassLoader
|
|||||||
{
|
{
|
||||||
spl_autoload_unregister(array($this, 'loadClass'));
|
spl_autoload_unregister(array($this, 'loadClass'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Detach spl autoload method from stack
|
||||||
|
*/
|
||||||
|
public function __destruct()
|
||||||
|
{
|
||||||
|
$this->unregister();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user