Skip to content

Commit d9639f4

Browse files
committed
Modernize routing definition
1 parent 2b17326 commit d9639f4

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

Resources/config/routing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
hackzilla_ticket:
22
resource: "@HackzillaTicketBundle/Resources/config/routing/ticket.yml"
3-
prefix: /ticket/
3+
prefix: /ticket/
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
hackzilla_ticket:
2-
path: /
3-
defaults: { _controller: "HackzillaTicketBundle:Ticket:index" }
2+
path: /
3+
controller: "Hackzilla\Bundle\TicketBundle\Controller\TicketController::indexAction"
44

55
hackzilla_ticket_show:
6-
path: /{ticketId}/show
7-
defaults: { _controller: "HackzillaTicketBundle:Ticket:show" }
6+
path: /{ticketId}/show
7+
controller: "Hackzilla\Bundle\TicketBundle\Controller\TicketController::showAction"
88

99
hackzilla_ticket_new:
10-
path: /new
11-
defaults: { _controller: "HackzillaTicketBundle:Ticket:new" }
10+
path: /new
11+
controller: "Hackzilla\Bundle\TicketBundle\Controller\TicketController::newAction"
1212

1313
hackzilla_ticket_create:
14-
path: /create
15-
defaults: { _controller: "HackzillaTicketBundle:Ticket:create" }
14+
path: /create
15+
controller: "Hackzilla\Bundle\TicketBundle\Controller\TicketController::createAction"
1616
methods: post
1717

1818
hackzilla_ticket_delete:
19-
path: /{ticketId}/delete
20-
defaults: { _controller: "HackzillaTicketBundle:Ticket:delete" }
19+
path: /{ticketId}/delete
20+
controller: "Hackzilla\Bundle\TicketBundle\Controller\TicketController::deleteAction"
2121
methods: post|delete
2222

2323
hackzilla_ticket_reply:
2424
path: /{ticketId}/reply
25-
defaults: { _controller: "HackzillaTicketBundle:Ticket:reply" }
25+
controller: "Hackzilla\Bundle\TicketBundle\Controller\TicketController::replyAction"
2626

2727
hackzilla_ticket_attachment:
28-
path: /attachment/{ticketMessageId}/download
29-
defaults: { _controller: "HackzillaTicketBundle:TicketAttachment:download" }
28+
path: /attachment/{ticketMessageId}/download
29+
controller: "Hackzilla\Bundle\TicketBundle\Controller\TicketAttachmentController::downloadAction"

0 commit comments

Comments
 (0)