fix deprecations: getName → getBlockPrefix or nothing

This commit is contained in:
nobohan 2018-03-30 14:22:40 +02:00
parent 85018f1927
commit af00cc4da6
8 changed files with 54 additions and 64 deletions

View File

@ -62,11 +62,6 @@ class CenterType extends AbstractType
$this->prepareReachableCenterByUser(); $this->prepareReachableCenterByUser();
} }
public function getName()
{
return 'center';
}
/** /**
* return a 'hidden' field if only one center is available. * return a 'hidden' field if only one center is available.
* *

View File

@ -54,7 +54,7 @@ class ComposedGroupCenterType extends AbstractType
$resolver->setDefault('data_class', 'Chill\MainBundle\Entity\GroupCenter'); $resolver->setDefault('data_class', 'Chill\MainBundle\Entity\GroupCenter');
} }
public function getName() public function getBlockPrefix()
{ {
return 'composed_groupcenter'; return 'composed_groupcenter';
} }

View File

@ -110,11 +110,6 @@ class ComposedRoleScopeType extends AbstractType
} }
public function getName()
{
return 'composed_role_scope';
}
public function configureOptions(OptionsResolver $resolver) public function configureOptions(OptionsResolver $resolver)
{ {
$resolver->setDefault('data_class', 'Chill\MainBundle\Entity\RoleScope'); $resolver->setDefault('data_class', 'Chill\MainBundle\Entity\RoleScope');

View File

@ -30,7 +30,7 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
*/ */
class Select2ChoiceType extends AbstractType class Select2ChoiceType extends AbstractType
{ {
public function getName() public function getBlockPrefix()
{ {
return 'select2_choice'; return 'select2_choice';
} }

View File

@ -51,7 +51,7 @@ class Select2CountryType extends AbstractType
$this->em = $em; $this->em = $em;
} }
public function getName() public function getBlockPrefix()
{ {
return 'select2_chill_country'; return 'select2_chill_country';
} }

View File

@ -30,7 +30,7 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
*/ */
class Select2EntityType extends AbstractType class Select2EntityType extends AbstractType
{ {
public function getName() public function getBlockPrefix()
{ {
return 'select2_entity'; return 'select2_entity';
} }

View File

@ -48,7 +48,7 @@ class Select2LanguageType extends AbstractType
$this->em = $em; $this->em = $em;
} }
public function getName() public function getBlockPrefix()
{ {
return 'select2_chill_language'; return 'select2_chill_language';
} }

View File

@ -28,7 +28,7 @@ class TranslatableStringFormType extends AbstractType
} }
} }
public function getName() public function getBlockPrefix()
{ {
return 'translatable_string'; return 'translatable_string';
} }