Skip to content

Commit 62a75ea

Browse files
jmeyodbu
authored andcommitted
Implement both getName and getBlockPrefix for symfony 2.8 based projects (#189)
keep getName implemented while we still support symfony 2.8 As explained in symfony upgrade document: https://github.com/symfony/symfony/blob/2.8/UPGRADE-2.8.md
1 parent 79dfa89 commit 62a75ea

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Form/Extension/Type/LocaleType.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,15 @@ public function getParent()
5454
return 'Symfony\\Component\\Form\\Extension\\Core\\Type\\ChoiceType';
5555
}
5656

57+
/**
58+
* @deprecated implement getBlockPrefix in place of getName, implement both for symfony 2.8 based projects
59+
* {@inheritdoc}
60+
*/
61+
public function getName()
62+
{
63+
return $this->getBlockPrefix();
64+
}
65+
5766
/**
5867
* {@inheritdoc}
5968
*/

0 commit comments

Comments
 (0)