We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f6a36d commit d711912Copy full SHA for d711912
Module.php
@@ -82,6 +82,11 @@ public function onBootstrap(MvcEvent $event)
82
}
83
84
$sentryApiKey = $this->config['zend-sentry']['sentry-api-key'];
85
+
86
+ // Do preliminary checks only, Raven will parse the string further
87
+ if (!$sentryApiKey || '' === $sentryApiKey || \is_null($sentryApiKey)) {
88
+ throw new \Raven_Exception('Missing Sentry API key.');
89
+ }
90
$ravenClient = new Raven($sentryApiKey, $ravenConfig);
91
92
// Register the RavenClient as a application wide service
@@ -261,4 +266,4 @@ private function convertKeyToPublic($key): string
261
266
// ... replace it with an empty string
262
267
return str_replace($privatePart, '', $key);
263
268
264
-}
269
+}
0 commit comments