parent
13fc7e16f2
commit
a382a563d5
|
@ -19,14 +19,6 @@ class ClassLoader
|
|||
*/
|
||||
private $namespaces = array();
|
||||
|
||||
/**
|
||||
* Detach spl autoload method from stack
|
||||
*/
|
||||
public function __destruct()
|
||||
{
|
||||
$this->unregister();
|
||||
}
|
||||
|
||||
/**
|
||||
* Register new namespace for directory
|
||||
*
|
||||
|
@ -138,4 +130,12 @@ class ClassLoader
|
|||
{
|
||||
spl_autoload_unregister(array($this, 'loadClass'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Detach spl autoload method from stack
|
||||
*/
|
||||
public function __destruct()
|
||||
{
|
||||
$this->unregister();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue