Example #1
0
 private static function loadFile($key)
 {
     $path = Route::getConfigPath();
     $config = array();
     if (is_file($file = $path . '/' . $key . '.php')) {
         $config = (require $file);
     }
     if (is_file($file = $path . '/custom/' . $key . '.php')) {
         $config = array_replace($config, require $file);
     }
     return $config;
 }