Skip to content

Commit 297a3d5

Browse files
Update TicketController.php
Change fixed template paths to config parameter.
1 parent 5a1a2b0 commit 297a3d5

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Controller/TicketController.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function indexAction(Request $request)
4545
);
4646

4747
return $this->render(
48-
'HackzillaTicketBundle:Ticket:index.html.twig',
48+
$this->container->getParameter('hackzilla_ticket.templates.index'),
4949
[
5050
'pagination' => $pagination,
5151
'ticketState' => $ticketState,
@@ -81,7 +81,7 @@ public function createAction(Request $request)
8181
}
8282

8383
return $this->render(
84-
'HackzillaTicketBundle:Ticket:new.html.twig',
84+
$this->container->getParameter('hackzilla_ticket.templates.new'),
8585
[
8686
'entity' => $ticket,
8787
'form' => $form->createView(),
@@ -100,7 +100,7 @@ public function newAction()
100100
$form = $this->createForm(TicketType::class, $entity);
101101

102102
return $this->render(
103-
'HackzillaTicketBundle:Ticket:new.html.twig',
103+
$this->container->getParameter('hackzilla_ticket.templates.new'),
104104
[
105105
'entity' => $entity,
106106
'form' => $form->createView(),
@@ -143,7 +143,7 @@ public function showAction($ticketId)
143143
$data['delete_form'] = $this->createDeleteForm($ticket->getId())->createView();
144144
}
145145

146-
return $this->render('HackzillaTicketBundle:Ticket:show.html.twig', $data);
146+
return $this->render($this->container->getParameter('hackzilla_ticket.templates.show'), $data);
147147
}
148148

149149
/**
@@ -190,7 +190,7 @@ public function replyAction(Request $request, $ticketId)
190190
$data['delete_form'] = $this->createDeleteForm($ticket->getId())->createView();
191191
}
192192

193-
return $this->render('HackzillaTicketBundle:Ticket:show.html.twig', $data);
193+
return $this->render($this->container->getParameter('hackzilla_ticket.templates.show'), $data);
194194
}
195195

196196
/**

0 commit comments

Comments
 (0)