Exemple #1
0
 /**
  *
  */
 public function boot()
 {
     try {
         if ($this->devmode) {
             $this->stopwatch = $this->injector->injectClass("develop.stopwatch");
             $this->stopwatch->start();
         }
     } catch (\Exception $e) {
         $this->handleError($e);
     }
 }
 /**
  *
  */
 public function boot()
 {
     try {
         if ($this->devmode) {
             $this->stopwatch = $this->injector->injectClass("develop.stopwatch");
             $this->stopwatch->start();
         }
         /**
          * @var Application $application
          */
         $this->application = $this->injector->injectClass("framework.application");
         $this->application->init($this->applicationConfig);
     } catch (DeclarationNotFound $e) {
         $this->application = $this->handleError($e);
     } catch (ClassNotFound $e) {
         $this->application = $this->handleError($e);
     } catch (WrongArguments $e) {
         $this->application = $this->handleError($e);
     } catch (\Exception $e) {
         $this->application = $this->handleError($e);
     }
 }