fix deprecations: remove array in setAllowedTypes

This commit is contained in:
nobohan 2018-04-05 10:32:33 +02:00
parent 3ea3beb1d5
commit 5afaff841c

View File

@ -145,10 +145,8 @@ trait AppendScopeChoiceTypeTrait
{ {
$resolver $resolver
->setRequired(array('center', 'role')) ->setRequired(array('center', 'role'))
->setAllowedTypes(array( ->setAllowedTypes('center', 'Chill\MainBundle\Entity\Center')
'center' => 'Chill\MainBundle\Entity\Center', ->setAllowedTypes('role', 'Symfony\Component\Security\Core\Role\Role')
'role' => 'Symfony\Component\Security\Core\Role\Role'
))
; ;
} }