setSlug(SystemSlugType::IMPRINT); $requestedRight = new Right(); $requestedRight->setSource($requestedSource); $requestedRight->setLayer(LayerType::SOURCE); $requestedRight->setType(CRUDType::READ); $sourceResponseManager = new SourceRESTResponseManager($this->getUser(), $entityManager, $requestedRight, $this->getViewHandler()); return $sourceResponseManager->getResponse(); } /** * @Route("/", name="homepage") */ public function homepage(): Response { return $this->render('standard/homepage.html.twig'); } }