Esempio n. 1
0
 /**
  * @expectedException PHPUnit_Framework_Error
  */
 public function testGetConfigFileException()
 {
     /**
      *	Second Test
      *  
      *  Passing a non-exist config file
      */
     $fileName = APPROOT . '/config/' . "non-exist.json";
     $return = Erdiko::getConfigFile($fileName);
 }
Esempio n. 2
0
 /**
  * Get the compiled application routes from the config files
  * 
  * @todo cache the loaded/compiled routes
  */
 public static function getRoutes()
 {
     $file = __DIR__ . '/app/config/application.json';
     $applicationConfig = Erdiko::getConfigFile($file);
     return $applicationConfig['routes'];
 }
Esempio n. 3
0
 /**
  * Get the compiled application routes from the config files
  * 
  * @todo cache the loaded/compiled routes
  */
 public static function getRoutes()
 {
     $file = APPROOT . '/config/application/routes.json';
     $applicationConfig = Erdiko::getConfigFile($file);
     return $applicationConfig['routes'];
 }