/**
  * @return bool
  */
 private function getInfos()
 {
     $this->Request->setController($this->routing[$this->Request->getRouteName()]['controller']);
     $this->Request->setAction($this->routing[$this->Request->getRouteName()]['action']);
     $this->Request->setSecure(!empty($this->routing[$this->Request->getRouteName()]['secure']) ? $this->routing[$this->Request->getRouteName()]['secure'] : false);
     return true;
 }
 /**
  * Kernel constructor.
  */
 public function __construct()
 {
     try {
         $this->Request = new Request();
         $this->Router = new Router($this->Request);
         $ControllerLoader = new ControllerLoader($this->Request->getController());
         if ($ControllerLoader->exist()) {
             $this->Controller = $ControllerLoader->getInstance($this->Request);
             if (method_exists($this->Controller, $this->Request->getAction())) {
                 call_user_func([$this->Controller, $this->Request->getAction()], $this->Request->getParams());
                 $Logger = new Logger('/logs/access.log');
                 $Date = new \DateTime('now');
                 $Logger->writeLine('[' . $Date->getTimestamp() . '] Path:' . $this->Request->getPath() . ' type:' . $this->Request->getMethod());
             } else {
                 $exception = new NotFoundException('Path:' . $this->Request->getPath() . ', Action ' . $this->Request->getAction() . ' not found in Controller ' . ucfirst($this->Request->getController() . 'Controller'));
                 throw $exception;
             }
         } else {
             $exception = new NotFoundException('Path:' . $this->Request->getPath() . ', Controller ' . ucfirst($this->Request->getController()) . 'Controller not found');
             throw $exception;
         }
     } catch (NotFoundException $e) {
         echo $e->cry();
     }
 }