mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-27 01:53:49 +00:00
fix deprecations: use fqcn for form creations in controllers
This commit is contained in:
@@ -73,7 +73,7 @@ class UserController extends Controller
|
||||
*/
|
||||
private function createCreateForm(User $entity)
|
||||
{
|
||||
$form = $this->createForm(new UserType(), $entity, array(
|
||||
$form = $this->createForm(UserType::class, $entity, array(
|
||||
'action' => $this->generateUrl('admin_user_create'),
|
||||
'method' => 'POST',
|
||||
'is_creation' => true
|
||||
@@ -177,7 +177,7 @@ class UserController extends Controller
|
||||
*/
|
||||
private function createEditPasswordForm(User $user)
|
||||
{
|
||||
return $this->createForm(new UserPasswordType(), $user, array(
|
||||
return $this->createForm(UserPasswordType::class, $user, array(
|
||||
'action' =>
|
||||
$this->generateUrl('admin_user_update_password', array('id' => $user->getId())),
|
||||
'method' => 'PUT'
|
||||
@@ -292,7 +292,7 @@ class UserController extends Controller
|
||||
*/
|
||||
private function createEditForm(User $user)
|
||||
{
|
||||
$form = $this->createForm(new UserType(), $user, array(
|
||||
$form = $this->createForm(UserType::class, $user, array(
|
||||
'action' => $this->generateUrl('admin_user_update', array('id' => $user->getId())),
|
||||
'method' => 'PUT',
|
||||
));
|
||||
|
Reference in New Issue
Block a user