mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-14 06:14:23 +00:00
fix deprecations: getName → getBlockPrefix or nothing
This commit is contained in:
parent
85018f1927
commit
af00cc4da6
@ -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.
|
||||||
*
|
*
|
||||||
|
@ -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';
|
||||||
}
|
}
|
||||||
|
@ -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');
|
||||||
|
@ -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';
|
||||||
}
|
}
|
||||||
|
@ -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';
|
||||||
}
|
}
|
||||||
|
@ -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';
|
||||||
}
|
}
|
||||||
|
@ -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';
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@ class TranslatableStringFormType extends AbstractType
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getName()
|
public function getBlockPrefix()
|
||||||
{
|
{
|
||||||
return 'translatable_string';
|
return 'translatable_string';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user