Ejemplo n.º 1
0
 /**
  * Render single Work page
  *
  * @param Work $work
  * @return array
  * @Route("/work/{slug}", name="app_work_page")
  * @Method("GET")
  * @Template()
  * @ParamConverter("work",
  *                  class="RainlikeAppBundle:Work",
  *                  options={"slug" = "slug"}
  * )
  */
 public function workAction(Work $work)
 {
     $profile = $this->get('entity')->profiles()->getBaseProfile();
     $subtitle = $work->getName();
     return ['profile' => $profile, 'work' => $work, 'subtitle' => $subtitle];
 }