Example #1
0
 public static function execute()
 {
     try {
         $xinc = new self();
         $xinc->parseCliOptions();
         $xinc->initLogger();
         $xinc->initPlugins();
         $xinc->validateCliOptions();
         $daemon = $xinc->initDaemon();
         $daemon->run();
     } catch (\Exception $e) {
         echo $e->getMessage();
         exit(1);
     }
 }