Skip to content

Commit

Permalink
Implement both getName and getBlockPrefix for symfony 2.8 based proje…
Browse files Browse the repository at this point in the history
…cts (#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
  • Loading branch information
jmeyo authored and dbu committed Jun 29, 2016
1 parent 79dfa89 commit 62a75ea
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Form/Extension/Type/LocaleType.php
Expand Up @@ -54,6 +54,15 @@ public function getParent()
return 'Symfony\\Component\\Form\\Extension\\Core\\Type\\ChoiceType';
}

/**
* @deprecated implement getBlockPrefix in place of getName, implement both for symfony 2.8 based projects
* {@inheritdoc}
*/
public function getName()
{
return $this->getBlockPrefix();
}

/**
* {@inheritdoc}
*/
Expand Down

0 comments on commit 62a75ea

Please sign in to comment.