public function prizeAction()
    {
        $prizeIdentifier = $this->getEvent()->getRouteMatch()->getParam('prize');
        $prize           = $this->getPrizeService()->getPrizeMapper()->findByIdentifier($prizeIdentifier);

        if (!$prize) {
            return $this->notFoundAction();
        }

        $viewModel = $this->buildView($this->game);
        $viewModel->setVariables(array('prize' => $prize));

        return $viewModel;
    }
public function prizeAction()
    {
        $prizeIdentifier = $this->getEvent()->getRouteMatch()->getParam('prize');
        $prize           = $this->getPrizeService()->getPrizeMapper()->findByIdentifier($prizeIdentifier);

        if (!$prize) {
            return $this->notFoundAction();
        }

        $viewModel = $this->buildView($this->game);
        $viewModel->setVariables(array('prize' => $prize));

        return $viewModel;
    }
public function prizeAction ( ) { $ prizeIdentifier = $ this -> getEvent ( ) -> getRouteMatch ( ) -> getParam ( 'prize' ) ; $ prize = $ this -> getPrizeService ( ) -> getPrizeMapper ( ) -> findByIdentifier ( $ prizeIdentifier ) ; if ( ! $ prize ) { return $ this -> notFoundAction ( ) ; } $ viewModel = $ this -> buildView ( $ this -> game ) ; $ viewModel -> setVariables ( array ( 'prize' => $ prize ) ) ; return $ viewModel ; }
This action displays a specific Prize page among those associated to the game
This action displays a specific Prize page among those associated to the game