Example #1
0
 /**
  * Parse a DSN and return a structured object.
  *
  * @param \Raven\Util\Dsn|string|null $dsn
  * @return \Raven\Util\Dsn
  */
 protected function parseDsn($dsn)
 {
     if ($dsn instanceof Dsn) {
         return $dsn;
     }
     if (is_null($dsn) and \Raven\get($_SERVER, "SENTRY_DSN")) {
         $dsn = $_SERVER['SENTRY_DSN'];
     }
     return new Dsn($dsn);
 }
Example #2
0
 /**
  * Get the current site's name
  *
  * @return string
  */
 public function getSite()
 {
     return \Raven\get($_SERVER, "SERVER_NAME", "");
 }