Пример #1
0
 /**
  * Set classes aliases
  */
 public static function setAlias($alias)
 {
     $shortcuts = $alias["shortcuts"];
     foreach ($shortcuts as $alias => $target) {
         $target = Strings::replace($target, "/", "\\");
         Alias::set($target, $alias);
     }
 }
Пример #2
0
 /**
  * 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);
         }
     }
 }