use event to override vote on task

Now, the bundle dispatch an event `chill_task.vote` to override the authorization
on voting on a task.

If a subscriber or listener emits a vote on the event, this vote override the
logic defined for the default task.
This commit is contained in:
2018-07-17 15:28:04 +02:00
parent 95f75e53eb
commit ebc0961fa8
3 changed files with 115 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ services:
arguments:
- "@security.access.decision_manager"
- "@chill.main.security.authorization.helper"
- '@Symfony\Component\EventDispatcher\EventDispatcherInterface'
- "@logger"
tags:
- { name: security.voter }