Closed phyzical closed 4 years ago
proposed
protected function getOpts(string $opt = '')
{
$dsn = Environment::getEnv('SENTRY_DSN');
if ($dsn)
{
Config::inst()->set(get_called_class(), 'opts', ['dsn' => $dsn]);
}
Confirmed as working, will make a pr later today (if you dont beat me to it) @phptek
Implemented in 3.0.0-beta5
- have a quiz and let me know if you have any problems. Apart from failing tests (which I'll get to) I'm pretty happy this can be stabilized at 3.0.0
3.0.0-beta5 using SENTRY_DSN works well thanks!
FYI You can now use 3.0.1 :-)
Perfecto 3.0.1 runs like a dream via envs thanks again!
No, thank you :-)
Currently i use a botched setup to inst sentry envs
Config::inst()->set("PhpTek\Sentry\Adaptor\SentryClientAdaptor", "opts", array ("dsn" => "https://$sentryDSN@xxx.com.au/$projectID"));
prefer the ability to have silverstripe-sentry check for envs in the current environment if possible for the system to rely on