From 8b9470cfd1a1afd729f0c9bcb5a3707c27542d89 Mon Sep 17 00:00:00 2001 From: Polonkai Gergely Date: Wed, 8 Aug 2012 22:18:33 +0200 Subject: [PATCH] Fixed code according to Sf2.1 API change * changed Form::bindRequest calls to Form::bind, as bindRequest goes deprecated soon Signed-off-by: Gergely Polonkai --- src/KekRozsak/FrontBundle/Controller/DefaultController.php | 2 +- src/KekRozsak/FrontBundle/Controller/DocumentController.php | 4 ++-- src/KekRozsak/FrontBundle/Controller/ForumController.php | 2 +- src/KekRozsak/FrontBundle/Controller/GroupController.php | 2 +- src/KekRozsak/SecurityBundle/Controller/DefaultController.php | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/KekRozsak/FrontBundle/Controller/DefaultController.php b/src/KekRozsak/FrontBundle/Controller/DefaultController.php index 3744f2a..0d065a0 100644 --- a/src/KekRozsak/FrontBundle/Controller/DefaultController.php +++ b/src/KekRozsak/FrontBundle/Controller/DefaultController.php @@ -42,7 +42,7 @@ class DefaultController extends Controller if ($request->getMethod() == 'POST') { - $form->bindRequest($request); + $form->bind($request); if ($form->isValid()) { if ($user->getPassword() == '') diff --git a/src/KekRozsak/FrontBundle/Controller/DocumentController.php b/src/KekRozsak/FrontBundle/Controller/DocumentController.php index 7f63356..bf382bc 100644 --- a/src/KekRozsak/FrontBundle/Controller/DocumentController.php +++ b/src/KekRozsak/FrontBundle/Controller/DocumentController.php @@ -46,7 +46,7 @@ class DocumentController extends Controller if ($request->getMethod() == 'POST') { - $form->bindRequest($request); + $form->bind($request); if ($form->isValid()) { @@ -81,7 +81,7 @@ class DocumentController extends Controller if ($request->getMethod() == 'POST') { - $form->bindRequest($request); + $form->bind($request); if ($form->isValid()) { /* TODO: move these lines into life cycle events */ diff --git a/src/KekRozsak/FrontBundle/Controller/ForumController.php b/src/KekRozsak/FrontBundle/Controller/ForumController.php index 1c0ae4a..44c04ef 100644 --- a/src/KekRozsak/FrontBundle/Controller/ForumController.php +++ b/src/KekRozsak/FrontBundle/Controller/ForumController.php @@ -64,7 +64,7 @@ class ForumController extends Controller $request = $this->getRequest(); if ($request->getMethod() == 'POST') { - $form->bindRequest($request); + $form->bind($request); if ($form->isValid()) { $post->setCreatedAt(new \DateTime('now')); diff --git a/src/KekRozsak/FrontBundle/Controller/GroupController.php b/src/KekRozsak/FrontBundle/Controller/GroupController.php index b610d2c..2d1676d 100644 --- a/src/KekRozsak/FrontBundle/Controller/GroupController.php +++ b/src/KekRozsak/FrontBundle/Controller/GroupController.php @@ -136,7 +136,7 @@ class GroupController extends Controller if ($request->getMethod() == 'POST') { - $form->bindRequest($request); + $form->bind($request); if ($form->isValid()) { $slugifier = new Slugifier(); diff --git a/src/KekRozsak/SecurityBundle/Controller/DefaultController.php b/src/KekRozsak/SecurityBundle/Controller/DefaultController.php index d8dced1..f33b098 100644 --- a/src/KekRozsak/SecurityBundle/Controller/DefaultController.php +++ b/src/KekRozsak/SecurityBundle/Controller/DefaultController.php @@ -75,7 +75,7 @@ class DefaultController extends Controller if ($request->getMethod() == 'POST') { - $form->bindRequest($request); + $form->bind($request); if ($form->isValid(array('registration'))) {