コード例 #1
0
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function fire()
 {
     // Don't run if there are no servers
     if (Ssms\Server::count() == 0) {
         $this->info('There are no servers to run triggers against!');
         $this->abort();
     }
     $this->info('Running server triggers:');
     $servers = Ssms\Server::all();
     foreach ($servers as $servers) {
         // IF: retries count > value : set flag 6
         // IF: retries count < value > 0 : set flag 5
     }
 }
コード例 #2
0
 protected function getStats()
 {
     $stats = ['users' => User::count(), 'servers' => Ssms\Server::count(), 'active_plugins' => 150, 'game_types' => 4];
     return $stats;
 }