/** * 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); }
/** * Get the current site's name * * @return string */ public function getSite() { return \Raven\get($_SERVER, "SERVER_NAME", ""); }