예제 #1
0
 /**
  * @param Domain $domain
  * @return Domain
  */
 public function check(Domain $domain)
 {
     $this->ssl->init($domain->getUrl());
     $domain->setDate($this->ssl->getExiprationDate());
     $domain->setIssuer($this->ssl->getIssuer('CN'));
     $this->em->persist($domain);
     $this->em->flush();
     return $domain;
 }
예제 #2
0
 /**
  * @param Domain $domains
  * @return Site
  */
 public function addDomain(Domain $domains)
 {
     $this->domains[] = $domains;
     $domains->setSite($this);
     return $this;
 }