/** * {@inheritDoc} */ public function toRequestParams(Notifications $notifications) { $params = new ParameterBag(); if (null !== $notifications->getUrl()) { $params->set('url', $notifications->getUrl()); } if ($notifications->hasNotificationEvent('video-created')) { $this->addRequestParamForEvent($notifications, 'video_created', $params); } if ($notifications->hasNotificationEvent('video-encoded')) { $this->addRequestParamForEvent($notifications, 'video_encoded', $params); } if ($notifications->hasNotificationEvent('encoding-progress')) { $this->addRequestParamForEvent($notifications, 'encoding_progress', $params); } if ($notifications->hasNotificationEvent('encoding-completed')) { $this->addRequestParamForEvent($notifications, 'encoding_completed', $params); } return $params; }