Example #1
0
 /**
  * Check whether the set domain is correct or not
  *
  * @param string $domain Set Domain
  *
  * @return array arguments
  * @throws HttpError
  */
 private function checkDomain($domain)
 {
     if (!empty($domain)) {
         if (preg_match($this->convertToRegex($domain), $this->request->getWebsite(), $arguments)) {
             return $arguments;
         }
         throw new HttpError(404);
     }
     return array();
 }