| @@ 54-56 (lines=3) @@ | ||
| 51 | * @return array |
|
| 52 | */ |
|
| 53 | public static function custom($path, $forceLoad = false) { |
|
| 54 | if (!$forceLoad && isset(self::$_configs['custom'][$path])) { |
|
| 55 | return self::$_configs['custom'][$path]; |
|
| 56 | } |
|
| 57 | ||
| 58 | if (!file_exists($path)) { |
|
| 59 | return []; |
|
| @@ 76-78 (lines=3) @@ | ||
| 73 | if (!$app) { |
|
| 74 | $app = App::$primary; |
|
| 75 | } |
|
| 76 | if (!$forceLoad && isset(self::$_configs['app'][$app->name])) { |
|
| 77 | return self::$_configs['app'][$app->name]; |
|
| 78 | } |
|
| 79 | ||
| 80 | $path = $app->path . "/config/config.php"; |
|
| 81 | if (!file_exists($path)) { |
|