/** * @return array */ public function listAction() { $players = $this->playerRepository->findAll(); return array('players' => $players); }