I'm having trouble creating more than one voter for each class
The idea is to have a voter for each class to be able to perform security access to it, the first voter worked but the second always denied access
I also noticed that in services.yml
it is only possible to add one, would it be possible to create more than one voter for a bundle?
example:
security.access.post_voter:
class: AppBundle\Security\Authorization\Voter\StateVoter
public: false
tags:
- { name: security.voter }
security.access.post_voter:
class: AppBundle\Security\Authorization\Voter\CityVoter
public: false
tags:
- { name: security.voter }
It does not let you repeat security.acess.post_voter