adapt elements to new interface definition

This commit is contained in:
2016-01-31 23:43:53 +01:00
parent e79aebabff
commit e616626cc2
6 changed files with 47 additions and 15 deletions

View File

@@ -24,8 +24,7 @@ use Symfony\Component\Form\FormBuilderInterface;
use Doctrine\ORM\QueryBuilder;
use Symfony\Component\Translation\TranslatorInterface;
use Chill\PersonBundle\Entity\Person;
use Chill\PersonBundle\Security\Authorization\PersonVoter;
use Symfony\Component\Security\Core\Role\Role;
use Chill\PersonBundle\Export\Declarations;
/**
*
@@ -48,7 +47,7 @@ class GenderAggregator implements AggregatorInterface
public function applyOn()
{
return 'person';
return Declarations::PERSON_TYPE;
}
@@ -85,9 +84,9 @@ class GenderAggregator implements AggregatorInterface
);
}
public function requiredRole()
public function addRole()
{
return new Role(PersonVoter::STATS);
return NULL;
}
}