mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-24 00:23:50 +00:00
record single task states transition and add them in timeline
This commit is contained in:
7
Resources/config/services/event.yml
Normal file
7
Resources/config/services/event.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
services:
|
||||
Chill\TaskBundle\Event\Lifecycle\TaskLifecycleEvent:
|
||||
arguments:
|
||||
$em: '@Doctrine\ORM\EntityManagerInterface'
|
||||
$tokenStorage: '@Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface'
|
||||
tags:
|
||||
- { name: kernel.event_subscriber }
|
8
Resources/config/services/timeline.yml
Normal file
8
Resources/config/services/timeline.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
services:
|
||||
Chill\TaskBundle\Timeline\TaskLifeCycleEventTimelineProvider:
|
||||
arguments:
|
||||
$em: '@Doctrine\ORM\EntityManagerInterface'
|
||||
$registry: '@Symfony\Component\Workflow\Registry'
|
||||
tags:
|
||||
- { name: 'chill.timeline', context: 'person' }
|
||||
|
Reference in New Issue
Block a user