Immobilien & User hinzugefügt

This commit is contained in:
2025-11-08 18:56:59 +01:00
parent cba9aef518
commit 320f2f30af
11 changed files with 1094 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
<?php
namespace App\Controller;
use App\Entity\Immobilie;
use App\Repository\ImmobilieRepository;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Attribute\Route;
#[Route('/immobilien')]
class ImmobilieController extends AbstractController
{
#[Route('/', name: 'app_immobilie_index')]
public function index(ImmobilieRepository $repository): Response
{
$immobilien = $repository->findVerfuegbare();
return $this->render('immobilie/index.html.twig', [
'immobilien' => $immobilien,
]);
}
#[Route('/{id}', name: 'app_immobilie_show', requirements: ['id' => '\d+'])]
public function show(Immobilie $immobilie): Response
{
return $this->render('immobilie/show.html.twig', [
'immobilie' => $immobilie,
]);
}
#[Route('/suche', name: 'app_immobilie_suche')]
public function suche(ImmobilieRepository $repository): Response
{
return $this->render('immobilie/suche.html.twig');
}
}