fix deprecations: getName -> getBlockPrefix in forms

This commit is contained in:
nobohan 2018-04-09 10:50:23 +02:00
parent 73f5295f40
commit 4b57510cc2
3 changed files with 5 additions and 5 deletions

View File

@ -84,7 +84,7 @@ class AccompanyingPeriodType extends AbstractType
/**
* @return string
*/
public function getName()
public function getBlockPrefix()
{
return 'chill_personbundle_accompanyingperiod';
}

View File

@ -36,7 +36,7 @@ use Chill\PersonBundle\Form\CreationPersonType;
class CreationPersonType extends AbstractType
{
const NAME = CreationPersonType::class;
const NAME = 'chill_personbundle_person_creation';
const FORM_NOT_REVIEWED = 'not_reviewed';
const FORM_REVIEWED = 'reviewed' ;
@ -128,7 +128,7 @@ class CreationPersonType extends AbstractType
/**
* @return string
*/
public function getName()
public function getBlockPrefix()
{
return self::NAME;
}

View File

@ -1,4 +1,4 @@
<?php
public function getBlockPrefix<?php
namespace Chill\PersonBundle\Form\Type;
@ -25,7 +25,7 @@ class ClosingMotiveType extends AbstractType
}
}
public function getName()
public function getBlockPrefix()
{
return 'closing_motive';
}