/**
  *
  * @Route("/{id}", name="webhook_show")
  * @Method("GET")
  *
  * @param WebHook $webHook
  *
  * @return Response
  */
 public function showAction(WebHook $webHook)
 {
     $notifications = $webHook->getNotifications();
     $notificationsData = [];
     foreach ($notifications as $notification) {
         $data = ['notification' => $notification];
         $content = json_decode($notification->getContent(), true);
         $data['content'] = array_merge($content, ['request' => $this->parseStr($content['body'])]);
         $notificationsData[] = $data;
     }
     return $this->render('webhook/show.html.twig', ['webHook' => $webHook, 'notificationsData' => $notificationsData, 'clearNotificationsForm' => $this->createClearNotificationsForm($webHook)->createView(), 'socket_secret' => $this->getSocketSecret()]);
 }