Skip to content

Commit

Permalink
Merge pull request #20 from odannyc/patch-1
Browse files Browse the repository at this point in the history
skip DSN validation if component is disabled
  • Loading branch information
albertborsos authored Nov 28, 2017
2 parents c293a45 + 31c199f commit a754ab1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Component.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,11 @@ class Component extends \yii\base\Component

public function init()
{
$this->validateDsn();

if (!$this->enabled) {
return;
}

$this->validateDsn();
$this->setRavenClient();
$this->setEnvironmentOptions();
$this->generatePublicDsn();
Expand Down

0 comments on commit a754ab1

Please sign in to comment.