public function load(ObjectManager $manager)
 {
     $subscribers = array(array('email' => '*****@*****.**', 'mailingInterval' => 1, 'numberOfMessagesToSend' => 5), array('email' => '*****@*****.**', 'mailingInterval' => 1, 'numberOfMessagesToSend' => 5));
     foreach ($subscribers as $s) {
         $subscriber = new Subscriber();
         $subscriber->setEmail($s['email']);
         $subscriber->setMailingInterval($s['mailingInterval']);
         $subscriber->setNumberOfMessagesToSend($s['numberOfMessagesToSend']);
         $manager->persist($subscriber);
     }
     $manager->flush();
 }
 /**
  * @Route("/admin/subscriber/{id}/delete", name="admin.subscriber.delete")
  */
 public function deleteAction(Request $req, $id)
 {
     $subscriber = new Subscriber(['id' => $id]);
     $subscriber->delete();
     return $this->redirectToRoute('admin.subscriber');
 }