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 <polesz@w00d5t0ck.info>
This commit is contained in:
parent
55cde1594b
commit
8b9470cfd1
@ -42,7 +42,7 @@ class DefaultController extends Controller
|
|||||||
|
|
||||||
if ($request->getMethod() == 'POST')
|
if ($request->getMethod() == 'POST')
|
||||||
{
|
{
|
||||||
$form->bindRequest($request);
|
$form->bind($request);
|
||||||
if ($form->isValid())
|
if ($form->isValid())
|
||||||
{
|
{
|
||||||
if ($user->getPassword() == '')
|
if ($user->getPassword() == '')
|
||||||
|
@ -46,7 +46,7 @@ class DocumentController extends Controller
|
|||||||
|
|
||||||
if ($request->getMethod() == 'POST')
|
if ($request->getMethod() == 'POST')
|
||||||
{
|
{
|
||||||
$form->bindRequest($request);
|
$form->bind($request);
|
||||||
|
|
||||||
if ($form->isValid())
|
if ($form->isValid())
|
||||||
{
|
{
|
||||||
@ -81,7 +81,7 @@ class DocumentController extends Controller
|
|||||||
|
|
||||||
if ($request->getMethod() == 'POST')
|
if ($request->getMethod() == 'POST')
|
||||||
{
|
{
|
||||||
$form->bindRequest($request);
|
$form->bind($request);
|
||||||
if ($form->isValid())
|
if ($form->isValid())
|
||||||
{
|
{
|
||||||
/* TODO: move these lines into life cycle events */
|
/* TODO: move these lines into life cycle events */
|
||||||
|
@ -64,7 +64,7 @@ class ForumController extends Controller
|
|||||||
$request = $this->getRequest();
|
$request = $this->getRequest();
|
||||||
if ($request->getMethod() == 'POST')
|
if ($request->getMethod() == 'POST')
|
||||||
{
|
{
|
||||||
$form->bindRequest($request);
|
$form->bind($request);
|
||||||
if ($form->isValid())
|
if ($form->isValid())
|
||||||
{
|
{
|
||||||
$post->setCreatedAt(new \DateTime('now'));
|
$post->setCreatedAt(new \DateTime('now'));
|
||||||
|
@ -136,7 +136,7 @@ class GroupController extends Controller
|
|||||||
|
|
||||||
if ($request->getMethod() == 'POST')
|
if ($request->getMethod() == 'POST')
|
||||||
{
|
{
|
||||||
$form->bindRequest($request);
|
$form->bind($request);
|
||||||
if ($form->isValid())
|
if ($form->isValid())
|
||||||
{
|
{
|
||||||
$slugifier = new Slugifier();
|
$slugifier = new Slugifier();
|
||||||
|
@ -75,7 +75,7 @@ class DefaultController extends Controller
|
|||||||
|
|
||||||
if ($request->getMethod() == 'POST')
|
if ($request->getMethod() == 'POST')
|
||||||
{
|
{
|
||||||
$form->bindRequest($request);
|
$form->bind($request);
|
||||||
|
|
||||||
if ($form->isValid(array('registration')))
|
if ($form->isValid(array('registration')))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user