From a382a563d512fbd0c9e7bf6bb47c77767e230784 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Tue, 18 Aug 2015 09:10:23 +0200 Subject: [PATCH] Move Loader::__destruct to the bottom of the method list refs #5786 --- library/Icinga/Application/ClassLoader.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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(); + } }