class aliases to keep compatibility

This commit is contained in:
Steffen Schröder 2014-06-20 14:29:17 +02:00
parent 32f2fd6f30
commit 53e3078cc1

View File

@ -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');
}
/**