removed class aliases again as it doesn't work as expected
This commit is contained in:
		@@ -16,17 +16,7 @@ class AutoLoader {
 | 
				
			|||||||
	 */
 | 
						 */
 | 
				
			||||||
	public static function register() {
 | 
						public static function register() {
 | 
				
			||||||
		spl_autoload_register(array(get_class(), 'autoload'));
 | 
							spl_autoload_register(array(get_class(), 'autoload'));
 | 
				
			||||||
		self::registerClassAliases();
 | 
					 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					 | 
				
			||||||
	/**
 | 
					 | 
				
			||||||
	 * Register the Class Aliases needed to keep compatibility
 | 
					 | 
				
			||||||
	 */
 | 
					 | 
				
			||||||
	private static function registerClassAliases() {
 | 
					 | 
				
			||||||
		class_alias('ManiaControl\\Utils\\Formatter', 'ManiaControl\\Formatter');
 | 
					 | 
				
			||||||
		class_alias('ManiaControl\\Utils\\ColorUtil', 'ManiaControl\\ColorUtil');
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	/**
 | 
						/**
 | 
				
			||||||
	 * Try to autoload the Class with the given Name
 | 
						 * Try to autoload the Class with the given Name
 | 
				
			||||||
	 *
 | 
						 *
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user