src/Controller/DefaultController.php line 17

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use Symfony\Component\HttpFoundation\Response;
  4. use App\Entity\Compilation;
  5. class DefaultController extends BeehiveController{
  6.     public function archive(): Response {
  7.         $entityManager $this->getDoctrine()->getManager();
  8.         $repository $entityManager->getRepository(Compilation::class);
  9.         $bl $repository->findBy(['collection' => 'BL'], ['volume' => 'ASC']);
  10.         $konk $repository->findBy(['collection' => 'BL Konk.'], ['volume' => 'ASC']);
  11.         $boep $repository->findBy(['collection' => 'BOEP'], ['volume' => 'ASC']);
  12.         return $this->render('default/archive.html.twig', ['bl' => $bl'konk' => $konk'boep' => $boep]);
  13.     }
  14.     public function about(): Response {
  15.         return $this->render('default/about.html.twig');
  16.     }
  17.     public function contact(): Response {
  18.         return $this->render('default/contact.html.twig');
  19.     }
  20.     public function help(): Response {
  21.         return $this->render('default/help.html.twig');
  22.     }
  23.     public function index(): Response {
  24.         return $this->render('default/index.html.twig');
  25.     }
  26. }