public function createEnterWorkflowSequence($initalStatus, $sender)
{
$config = ['end' => $initalStatus, 'sender' => $sender];
return ['before' => [new WorkflowEvent(WorkflowEvent::beforeEnterWorkflow(), $config), new WorkflowEvent(WorkflowEvent::beforeEnterWorkflow($initalStatus->getWorkflowId()), $config), new WorkflowEvent(WorkflowEvent::beforeEnterStatus(), $config), new WorkflowEvent(WorkflowEvent::beforeEnterStatus($initalStatus->getId()), $config)], 'after' => [new WorkflowEvent(WorkflowEvent::afterEnterWorkflow(), $config), new WorkflowEvent(WorkflowEvent::afterEnterWorkflow($initalStatus->getWorkflowId()), $config), new WorkflowEvent(WorkflowEvent::afterEnterStatus(), $config), new WorkflowEvent(WorkflowEvent::afterEnterStatus($initalStatus->getId()), $config)]];
}