Ejemplo 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);
 }
Ejemplo 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'];
 }
Ejemplo 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'];
 }