From 53e3078cc103081ac8a87cac6cf1d90d6bff34b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Fri, 20 Jun 2014 14:29:17 +0200 Subject: [PATCH] class aliases to keep compatibility --- application/core/AutoLoader.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/application/core/AutoLoader.php b/application/core/AutoLoader.php index 0b508bc7..0b7265fe 100644 --- a/application/core/AutoLoader.php +++ b/application/core/AutoLoader.php @@ -16,6 +16,15 @@ class AutoLoader { */ public static function register() { spl_autoload_register(array(get_class(), 'autoload')); + self::registerClassAliases(); + } + + /** + * Register the Class Aliases needed to keep compatibility + */ + private function registerClassAliases() { + class_alias('ManiaControl\\Utils\\Formatter', 'ManiaControl\\Formatter'); + class_alias('ManiaControl\\Utils\\ColorUtil', 'ManiaControl\\ColorUtil'); } /**