public function __construct(Area $area, ProjectAreaRepository $repository) { $this->area = $area; $this->repository = $repository; $this->name = $this->area->getName(); $this->territory = $this->area->getTerritory(); $this->customData = $this->area->getCustomData(); }
protected function performResults($courseInfoPage, $profilePage, Area $area, Request $request) { $repository = $this->get(self::REPOSITORY_NAME); $text = $this->getTextRepository()->getText(CourseTexts::AREA_COURSE_LIST_TEXT, $request); $this->breadcrumbs()->link($area->getName(), $this->crudInfo->getInfoPage(), ['id' => $area->getId(), 'slug' => $this->getSlug()]); return $this->render($this->crudInfo->getTemplateLocation() . 'other-individual-results.html.twig', array('pageSubtitle' => $this->crudInfo->getPageSubtitle(), 'courseInfoPage' => $courseInfoPage, 'userProfilePage' => $profilePage, 'area' => $area, 'items' => $repository->findTotalIndividualResultsForArea($area), 'indexPage' => $this->crudInfo->getIndexPage())); }