public function render(CantigaController $controller, Request $request, Workspace $workspace, Project $project = null) { $rootEntity = $controller->getMembership()->getItem(); $this->repository->setRootEntity($rootEntity); $this->settingsRepository->setRootEntity($rootEntity); return $this->templating->render('WioEdkBundle:Extension:route-summary.html.twig', ['routeNum' => $this->repository->countRoutes(), 'participantNum' => $this->settingsRepository->countParticipants()]); }
public function collectData(IdentifiableInterface $root) { $this->data = $this->enhanceData($this->repo->countRouteFiles($root)); return true; }
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)]); }