public function render(CantigaController $controller, Request $request, Workspace $workspace, Project $project = null) { $item = $controller->getMembership()->getItem(); $this->repository->setRootEntity($item); return $this->templating->render('WioEdkBundle:Extension:recent-routes.html.twig', ['routeInfoPath' => lcfirst($item->getEntity()->getType()) . '_route_info', 'routes' => $this->repository->getRecentlyChangedRoutes(5)]); }