diff --git a/library/Icinga/Application/ClassLoader.php b/library/Icinga/Application/ClassLoader.php index 051c2ae12..17d7e9e33 100644 --- a/library/Icinga/Application/ClassLoader.php +++ b/library/Icinga/Application/ClassLoader.php @@ -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(); + } }