Esempio n. 1
0
 /**
  * Listener for incoming commands
  */
 private function listenCommand()
 {
     $commands = file(self::$commandsFile);
     if (sizeof($commands) > self::$totalCommands) {
         self::$totalCommands = sizeof($commands);
         $command = $commands[self::$totalCommands - 1];
         $this->parse($command);
     }
 }