From 37780125655fa2f971f8d16e7088c06e033e7c14 Mon Sep 17 00:00:00 2001 From: nobohan Date: Wed, 28 Mar 2018 17:40:09 +0200 Subject: [PATCH] update deprecated routing option: requirement -> methods --- Resources/config/routing.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Resources/config/routing.yml b/Resources/config/routing.yml index 96a053bac..8b15f0077 100644 --- a/Resources/config/routing.yml +++ b/Resources/config/routing.yml @@ -10,12 +10,12 @@ report_new: path: /{_locale}/person/{person_id}/report/cfgroup/{cf_group_id}/new defaults: { _controller: "ChillReportBundle:Report:new" } -report_create: +report_create: path: /{_locale}/person/{person_id}/report/cfgroup/{cf_group_id}/create defaults: { _controller: "ChillReportBundle:Report:create" } - requirements: { _method: post } + methods: [POST] -report_list: +report_list: path: /{_locale}/person/{person_id}/report/list defaults: { _controller: "ChillReportBundle:Report:list" } options: @@ -34,7 +34,7 @@ report_edit: report_update: path: /{_locale}/person/{person_id}/report/{report_id}/update defaults: { _controller: "ChillReportBundle:Report:update" } - requirements: { _method: post|put } + methods: [POST, PUT] report_export_list: path: /{_locale}/export/report/cfgroup/{cf_group_id} @@ -49,4 +49,3 @@ report_export_select_type: export: order: 100 label: Export reports - \ No newline at end of file