fix deprecations: getName → getBlockPrefix

This commit is contained in:
nobohan 2018-03-30 14:06:54 +02:00
parent ffd2ee6f69
commit 85018f1927
5 changed files with 19 additions and 17 deletions

View File

@ -5,6 +5,7 @@ namespace Chill\MainBundle\Form;
use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver; use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Form\Extension\Core\Type\TextType;
class CenterType extends AbstractType class CenterType extends AbstractType
{ {
@ -15,7 +16,7 @@ class CenterType extends AbstractType
public function buildForm(FormBuilderInterface $builder, array $options) public function buildForm(FormBuilderInterface $builder, array $options)
{ {
$builder $builder
->add('name') ->add('name', TextType::class)
; ;
} }
@ -32,8 +33,9 @@ class CenterType extends AbstractType
/** /**
* @return string * @return string
*/ */
public function getName() public function getBlockPrefix()
{ {
return 'chill_mainbundle_center'; return 'chill_mainbundle_center';
} }
} }

View File

@ -32,7 +32,7 @@ class PermissionsGroupType extends AbstractType
/** /**
* @return string * @return string
*/ */
public function getName() public function getBlockPrefix()
{ {
return 'chill_mainbundle_permissionsgroup'; return 'chill_mainbundle_permissionsgroup';
} }

View File

@ -32,7 +32,7 @@ class ScopeType extends AbstractType
/** /**
* @return string * @return string
*/ */
public function getName() public function getBlockPrefix()
{ {
return 'chill_mainbundle_scope'; return 'chill_mainbundle_scope';
} }

View File

@ -59,7 +59,7 @@ class UserPasswordType extends AbstractType
/** /**
* @return string * @return string
*/ */
public function getName() public function getBlockPrefix()
{ {
return 'chill_mainbundle_user_password'; return 'chill_mainbundle_user_password';
} }

View File

@ -55,7 +55,7 @@ class UserType extends AbstractType
/** /**
* @return string * @return string
*/ */
public function getName() public function getBlockPrefix()
{ {
return 'chill_mainbundle_user'; return 'chill_mainbundle_user';
} }