public function sendBackToNormalEmail(WebsiteEvent $event)
 {
     $website = $event->getWebsite();
     $logger = $this->container->get('logger');
     $templating = $this->container->get('templating');
     $logger->info("[email] Email sent about website (" . $website->getUrl() . ") back to normal.");
     $assignation = array('emailTitle' => '[Website up] ' . $website->getUrl() . ' is back to normal.', 'description' => $website->getName() . ' website is now back to normal since ' . $website->getLastCrawl()->format('Y/m/d H:i:s e') . '.');
     $this->sendEmail($assignation, $templating->render('email/alert.html.twig', $assignation));
 }
 public function retryCrawl(WebsiteEvent $event)
 {
     $website = $event->getWebsite();
     $producer = $this->container->get('old_sound_rabbit_mq.crawl_website_producer');
     $producer->publish($website->getMessage());
 }