Aug 31, 2018 · 1 min read
Great! It taught me a lot about Voter and made use of them! They’re so simply!
The only thing I would add, as I faced it, is that the values used to defined constants (public const EDIT = ‘edit’;) must be unique for the whole app, otherwise Symfony take the first Voter he finds, which may not be the good one. So, I have just added the name of the App or bundle (public const EDIT = ‘vendorBundle-edit’;) to avoid that.
