/** * Set classes aliases */ public static function setAlias($alias) { $shortcuts = $alias["shortcuts"]; foreach ($shortcuts as $alias => $target) { $target = Strings::replace($target, "/", "\\"); Alias::set($target, $alias); } }
/** * Set classes aliases */ public static function setAlias($alias) { if (self::isConfigKeyExist($alias, "shortcuts")) { $shortcuts = self::$config[$alias]["shortcuts"]; // foreach ($shortcuts as $alias => $target) { $target = Strings::replace($target, "/", "\\"); Alias::set($target, $alias); } } }