MAZE_PROJECT_NAME, 'path' => MAZE_PROJECT_PATH, 'url' => Url::get(''), 'lang' => defined('MAZE_PROJECT_LANG') ? MAZE_PROJECT_LANG : MAZE_PROJECT_NAME, 'order' => defined('MAZE_PROJECT_ORDER') ? MAZE_PROJECT_ORDER : 1, 'lib' => defined('MAZE_PROJECT_LIB') ? MAZE_PROJECT_LIB : MAZE_PROJECT_NAME ); foreach(self::$content as $k => $v) { if($v['lib'] != $k) { self::$alias[$v['lib']] = '$project["'.$k.'"]'; } } $alias = array(); if(self::$alias) { $alias = str_replace(array("'$", "',"), array("$", ","), var_export(self::$alias, true)); } else { $alias = var_export(self::$alias, true); } file_put_contents($file, '