public function execute(TaskEvent $event) { $user_id = $this->userSession->getId(); if (!empty($user_id)) { $this->transition->save($user_id, $event->getAll()); } }
public function executeRequest($parameter, TaskEvent $event) { $url = $this->config->get($parameter); if (!empty($url)) { $this->webhook->notify($url, $event->getAll()); } }