/**
  * Constructeur
  * Initialise le dispatcher, met à jour la Request
  */
 public function __construct()
 {
     try {
         Minz_Configuration::register('system', DATA_PATH . '/config.php', DATA_PATH . '/config.default.php');
         $this->setReporting();
         Minz_Request::init();
         $url = $this->buildUrl();
         $url['params'] = array_merge($url['params'], Minz_Request::fetchPOST());
         Minz_Request::forward($url);
     } catch (Minz_Exception $e) {
         Minz_Log::error($e->getMessage());
         $this->killApp($e->getMessage());
     }
     $this->dispatcher = Minz_Dispatcher::getInstance();
 }
 /**
  * Constructeur
  * Initialise le router et le dispatcher
  */
 public function __construct()
 {
     if (LOG_PATH === false) {
         $this->killApp('Path not found: LOG_PATH');
     }
     try {
         Minz_Configuration::init();
         Minz_Request::init();
         $this->router = new Minz_Router();
         $this->router->init();
     } catch (Minz_RouteNotFoundException $e) {
         Minz_Log::record($e->getMessage(), Minz_Log::ERROR);
         Minz_Error::error(404, array('error' => array($e->getMessage())));
     } catch (Minz_Exception $e) {
         Minz_Log::record($e->getMessage(), Minz_Log::ERROR);
         $this->killApp($e->getMessage());
     }
     $this->dispatcher = Minz_Dispatcher::getInstance($this->router);
 }