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()]);
 }
Exemplo n.º 2
0
 public function collectData(IdentifiableInterface $root)
 {
     $this->data = $this->enhanceData($this->repo->countRouteFiles($root));
     return true;
 }
Exemplo n.º 3
0
 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)]);
 }