mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
fix deprecations: getName → getBlockPrefix
This commit is contained in:
parent
ffd2ee6f69
commit
85018f1927
@ -5,6 +5,7 @@ namespace Chill\MainBundle\Form;
|
||||
use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||
use Symfony\Component\Form\Extension\Core\Type\TextType;
|
||||
|
||||
class CenterType extends AbstractType
|
||||
{
|
||||
@ -15,7 +16,7 @@ class CenterType extends AbstractType
|
||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||
{
|
||||
$builder
|
||||
->add('name')
|
||||
->add('name', TextType::class)
|
||||
;
|
||||
}
|
||||
|
||||
@ -32,8 +33,9 @@ class CenterType extends AbstractType
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
public function getBlockPrefix()
|
||||
{
|
||||
return 'chill_mainbundle_center';
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ class PermissionsGroupType extends AbstractType
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
public function getBlockPrefix()
|
||||
{
|
||||
return 'chill_mainbundle_permissionsgroup';
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ class ScopeType extends AbstractType
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
public function getBlockPrefix()
|
||||
{
|
||||
return 'chill_mainbundle_scope';
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ class UserPasswordType extends AbstractType
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
public function getBlockPrefix()
|
||||
{
|
||||
return 'chill_mainbundle_user_password';
|
||||
}
|
||||
|
@ -55,7 +55,7 @@ class UserType extends AbstractType
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
public function getBlockPrefix()
|
||||
{
|
||||
return 'chill_mainbundle_user';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user