Skip to content

Commit 7ec6829

Browse files
committed
minor #198 Modernize routing definition (phansys)
This PR was merged into the 3.x branch. Discussion ---------- |Q |A | |--- |---| |Branch |3.x| |Bug fix? |no | |New feature? |no | |BC breaks? |no | |Deprecations?|no | |Tests pass? |yes| |Fixed tickets|n/a| |License |MIT| |Doc PR |n/a| Commits ------- 1c9648a Modernize routing definition
2 parents 2b17326 + 1c9648a commit 7ec6829

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
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: 14 additions & 14 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:
24-
path: /{ticketId}/reply
25-
defaults: { _controller: "HackzillaTicketBundle:Ticket:reply" }
24+
path: /{ticketId}/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)