src/Controller/ExperienceDetailController.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use App\Entity\Experience;
  4. use WAM\Bundle\CoreBundle\Controller\Traits\RendererControllerTrait;
  5. use WAM\Bundle\CoreBundle\Util\Interfaces\RendererAwareInterface;
  6. /**
  7.  * @author Gerard Rico <grico@wearemarketing.com>
  8.  */
  9. class ExperienceDetailController implements RendererAwareInterface
  10. {
  11.     use RendererControllerTrait;
  12.     public function __invoke(Experience $contentDocument)
  13.     {
  14.         return $this->render(
  15.             'default/experience_detail.html.twig',
  16.             [
  17.                 'experience' => $contentDocument,
  18.                 'hotel' => $contentDocument->getHotel()
  19.             ]
  20.         );
  21.     }
  22. }