Skip to content

Commit

Permalink
[AllBundles] Fix BC break after upgrading to sensio/framework-extra-b…
Browse files Browse the repository at this point in the history
…undle 5.0
  • Loading branch information
acrobat committed Jul 11, 2018
1 parent a2c2177 commit a688e66
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ class DashboardController extends Controller
* The index action will render the main screen the users see when they log in in to the admin
*
* @Route("/", name="kunstmaan_dashboard")
* @Template()
*
* @param \Symfony\Component\HttpFoundation\Request $request
* @return array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function indexAction(Request $request)
* @Route("/list/{nodeTranslationId}", requirements={"nodeTranslationId" = "\d+"},
* name="KunstmaanFormBundle_formsubmissions_list")
* @Method({"GET", "POST"})
* @Template()
* @Template("@KunstmaanForm/FormSubmissions/list.html.twig")
*
* @return array
*/
Expand Down Expand Up @@ -85,7 +85,7 @@ public function listAction(Request $request, $nodeTranslationId)
* @Route("/list/{nodeTranslationId}/{submissionId}", requirements={"nodeTranslationId" = "\d+", "submissionId" =
* "\d+"}, name="KunstmaanFormBundle_formsubmissions_list_edit")
* @Method({"GET", "POST"})
* @Template()
* @Template("@KunstmaanForm/FormSubmissions/edit.html.twig")
*
* @return array
*/
Expand Down Expand Up @@ -142,7 +142,6 @@ public function exportAction($nodeTranslationId, $_format)
* requirements={"id" = "\d+"},
* name="KunstmaanFormBundle_formsubmissions_delete"
* )
* @Template()
* @Method("POST")
*
* @param Request $request
Expand Down
2 changes: 1 addition & 1 deletion src/Kunstmaan/MediaBundle/Controller/ChooserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function chooserIndexAction(Request $request)
* @param int $folderId The folder id
*
* @Route("/chooser/{folderId}", requirements={"folderId" = "\d+"}, name="KunstmaanMediaBundle_chooser_show_folder")
* @Template()
* @Template("@KunstmaanMedia/Chooser/chooserShowFolder.html.twig")
*
* @return array
*/
Expand Down
2 changes: 0 additions & 2 deletions src/Kunstmaan/MediaBundle/Controller/FolderController.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ public function deleteAction(Request $request, $folderId)
*
* @Route("/subcreate/{folderId}", requirements={"folderId" = "\d+"}, name="KunstmaanMediaBundle_folder_sub_create")
* @Method({"GET", "POST"})
* @Template()
*
* @return Response
*/
Expand Down Expand Up @@ -215,7 +214,6 @@ public function subCreateAction(Request $request, $folderId)
*
* @Route("/empty/{folderId}", requirements={"folderId" = "\d+"}, name="KunstmaanMediaBundle_folder_empty")
* @Method({"GET", "POST"})
* @Template()
*
* @return Response
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class IconFontController extends Controller
* @param Request $request
*
* @Route("/chooser", name="KunstmaanMediaBundle_icon_font_chooser")
* @Template()
* @Template("@KunstmaanMedia/IconFont/iconFontChooser.html.twig")
*
* @return array
*/
Expand Down
6 changes: 2 additions & 4 deletions src/Kunstmaan/MediaBundle/Controller/MediaController.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public function deleteAction(Request $request, $mediaId)
* @param int $folderId
*
* @Route("bulkupload/{folderId}", requirements={"folderId" = "\d+"}, name="KunstmaanMediaBundle_media_bulk_upload")
* @Template()
* @Template("@KunstmaanMedia/Media/bulkUpload.html.twig")
*
* @return array|RedirectResponse
*/
Expand All @@ -141,7 +141,6 @@ public function bulkUploadAction($folderId)
* @param int $folderId
*
* @Route("bulkuploadsubmit/{folderId}", requirements={"folderId" = "\d+"}, name="KunstmaanMediaBundle_media_bulk_upload_submit")
* @Template()
*
* @return JsonResponse
*/
Expand Down Expand Up @@ -352,7 +351,7 @@ public function dropAction(Request $request, $folderId)
*
* @Route("create/{folderId}/{type}", requirements={"folderId" = "\d+", "type" = ".+"}, name="KunstmaanMediaBundle_media_create")
* @Method({"GET", "POST"})
* @Template()
* @Template("@KunstmaanMedia/Media/create.html.twig")
*
* @return array|RedirectResponse
*/
Expand Down Expand Up @@ -438,7 +437,6 @@ private function createAndRedirect(Request $request, $folderId, $type, $redirect
*
* @Route("create/modal/{folderId}/{type}", requirements={"folderId" = "\d+", "type" = ".+"}, name="KunstmaanMediaBundle_media_modal_create")
* @Method({"GET", "POST"})
* @Template()
*
* @return array|RedirectResponse
*/
Expand Down
10 changes: 1 addition & 9 deletions src/Kunstmaan/NodeBundle/Controller/NodeAdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ public function indexAction(Request $request)
* name="KunstmaanNodeBundle_nodes_copyfromotherlanguage"
* )
* @Method("GET")
* @Template()
*
* @param Request $request
* @param int $id The node id
Expand Down Expand Up @@ -212,7 +211,6 @@ public function copyFromOtherLanguageAction(Request $request, $id)
* name="KunstmaanNodeBundle_nodes_recopyfromotherlanguage"
* )
* @Method("POST")
* @Template()
*
* @param Request $request
* @param int $id The node id
Expand Down Expand Up @@ -263,7 +261,6 @@ public function recopyFromOtherLanguageAction(Request $request, $id)
* name="KunstmaanNodeBundle_nodes_createemptypage"
* )
* @Method("GET")
* @Template()
*
* @param Request $request
* @param int $id
Expand Down Expand Up @@ -389,7 +386,6 @@ public function unSchedulePublishAction(Request $request, $id)
* requirements={"id" = "\d+"},
* name="KunstmaanNodeBundle_nodes_delete"
* )
* @Template()
* @Method("POST")
*
* @param Request $request
Expand Down Expand Up @@ -454,7 +450,6 @@ public function deleteAction(Request $request, $id)
* requirements={"id" = "\d+"},
* name="KunstmaanNodeBundle_nodes_duplicate"
* )
* @Template()
* @Method("POST")
*
* @param Request $request
Expand Down Expand Up @@ -528,7 +523,6 @@ public function duplicateAction(Request $request, $id)
* defaults={"subaction" = "public"},
* name="KunstmaanNodeBundle_nodes_revert"
* )
* @Template()
* @Method("GET")
*
* @param Request $request
Expand Down Expand Up @@ -613,7 +607,6 @@ public function revertAction(Request $request, $id)
* requirements={"id" = "\d+"},
* name="KunstmaanNodeBundle_nodes_add"
* )
* @Template()
* @Method("POST")
*
* @param Request $request
Expand Down Expand Up @@ -679,7 +672,6 @@ public function addAction(Request $request, $id)

/**
* @Route("/add-homepage", name="KunstmaanNodeBundle_nodes_add_homepage")
* @Template()
* @Method("POST")
*
* @return RedirectResponse
Expand Down Expand Up @@ -802,7 +794,7 @@ public function reorderAction(Request $request)
* defaults={"subaction" = "public"},
* name="KunstmaanNodeBundle_nodes_edit"
* )
* @Template()
* @Template("@KunstmaanNode/NodeAdmin/edit.html.twig")
* @Method({"GET", "POST"})
*
* @param Request $request
Expand Down

0 comments on commit a688e66

Please sign in to comment.