show details of offer
This commit is contained in:
parent
eba1194686
commit
23c3a24672
9 changed files with 125 additions and 4 deletions
|
@ -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,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -127,4 +127,9 @@ class Offering
|
|||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __toString(): string
|
||||
{
|
||||
return (string) $this-getTitle();
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue