Beispiel #1
0
 private function prompt()
 {
     echo $this->commandManager->getPromptString();
     $get = fgets($this->in);
     $get = str_replace("\n", "", $get);
     $get = str_replace("\r", "", $get);
     $params = explode(" ", $get);
     try {
         $this->out($this->getCommand($params[0], $params));
     } catch (CommandNotFoundException $e) {
         $this->out('Commande ' . $get . ' inconnue');
     } catch (\Exception $e) {
         $this->out($e->getMessage());
         $this->logger->warning($e->getMessage());
     }
     $this->prompt();
 }