Move Loader::__destruct to the bottom of the method list

refs #5786
This commit is contained in:
Eric Lippmann 2015-08-18 09:10:23 +02:00
parent 13fc7e16f2
commit a382a563d5
1 changed files with 8 additions and 8 deletions

View File

@ -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();
}
}