From bcc9be619d87130a826cbbd916003fad6205dd45 Mon Sep 17 00:00:00 2001 From: Alexander Demidov Date: Tue, 26 Jun 2012 17:52:37 +0400 Subject: [PATCH] Merge spl_autoload from init to Load::setAutoloadFrom. --- Load.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Load.php b/Load.php index 5c44b3f..46b54ab 100644 --- a/Load.php +++ b/Load.php @@ -39,6 +39,9 @@ class Load self::buildAutoload(); } self::$autoload = require(self::$file); + spl_autoload_register(array( + __CLASS__, + 'autoload')); } static public function autoload($class)