Example #1
0
 public function __construct(EntityManager $em)
 {
     $this->em = $em;
     $date = new \DateTIme();
     $this->then = date_format($date->sub(new \DateInterval('P30D')), 'Y-m-d');
     $this->expiry = date_format($date->add(new \DateInterval('P1Y')), 'Y-m-d');
 }