Skip to content
This repository has been archived by the owner on Feb 15, 2021. It is now read-only.

Commit

Permalink
class error solved
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesper Menting committed May 25, 2018
1 parent 3ad3b82 commit 191c1e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SentryAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ public static function createProject($name){
}

public static function install($project){
$dsn = json_decode(self::cURLRequest("https://sentry.io/api/0/projects/jesper-menting/".$project."/keys/", "GET"))[0]->dsn;
$response = self::cURLRequest("https://sentry.io/api/0/projects/jesper-menting/".$project."/keys/", "GET");
$dsn = json_decode($response)[0]->dsn;
if(strpos($project, 'laravel_') !== false){
SentryAPI::setEnvironmentVariable('SENTRY_LARAVEL_DSN', $dsn->secret);
SentryAPI::setExceptionHandler();
Expand Down

0 comments on commit 191c1e8

Please sign in to comment.