show details of offer

This commit is contained in:
Jannis Portmann 2021-05-01 15:33:45 +02:00
parent eba1194686
commit 23c3a24672
9 changed files with 125 additions and 4 deletions

View file

@ -77,10 +77,10 @@ class AppController extends AbstractController
}
#[Route('/offer/{id}', name: 'show_offer')]
public function offer(): Response
public function show_offer(Offering $offering): Response
{
return $this->render('app/offer.html.twig', [
'offer' => $this->getOffering(),
'offer' => $offering,
]);
}
}

View file

@ -127,4 +127,9 @@ class Offering
return $this;
}
public function __toString(): string
{
return (string) $this-getTitle();
}
}