public function onManifestPull(ManifestEvent $event)
 {
     $this->om->getRepository('AppBundle:Manifest')->incrementPulls($event->getManifest());
 }
 public function onManifestPush(ManifestEvent $event)
 {
     $manifest = $event->getManifest();
     $message = new Message($this->serializer->serialize($manifest, 'json', ['groups' => ['manifest_push']]));
     $this->publisher->publish('manifest_push', $message);
     $manifest->setUpdatedAt(new \DateTime());
     $this->om->flush();
 }