<?php
namespace App\Controller;
use App\Entity\Experience;
use WAM\Bundle\CoreBundle\Controller\Traits\RendererControllerTrait;
use WAM\Bundle\CoreBundle\Util\Interfaces\RendererAwareInterface;
/**
* @author Gerard Rico <grico@wearemarketing.com>
*/
class ExperienceDetailController implements RendererAwareInterface
{
use RendererControllerTrait;
public function __invoke(Experience $contentDocument)
{
return $this->render(
'default/experience_detail.html.twig',
[
'experience' => $contentDocument,
'hotel' => $contentDocument->getHotel()
]
);
}
}