Exemplo n.º 1
0
 /**
  * Shows a ranked list of all clans in the game
  *
  * @param Container
  * @return Response
  */
 public function listClans(Container $p_dependencies)
 {
     $parts = ['title' => 'Clan List', 'clans' => Clan::rankings(), 'pageParts' => ['list']];
     $player = $p_dependencies['current_player'];
     if ($player) {
         $clan = Clan::findByMember($player);
         if ($clan) {
             array_unshift($parts['pageParts'], 'reminder-member');
         } else {
             array_unshift($parts['pageParts'], 'reminder-no-clan');
         }
     }
     return $this->render($parts);
 }