Skip to content

Commit

Permalink
possibility to configure the ravenjs client too
Browse files Browse the repository at this point in the history
  • Loading branch information
markushausammann committed Jul 27, 2017
1 parent ca542e9 commit 057d35f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,8 @@ protected function setupJavascriptLogging(MvcEvent $event)
$viewHelper = $event->getApplication()->getServiceManager()->get('ViewHelperManager')->get('headscript');
$viewHelper->offsetSetFile(0, '//cdn.ravenjs.com/3.17.0/raven.min.js');
$publicApiKey = $this->convertKeyToPublic($this->config['zend-sentry']['sentry-api-key']);
$viewHelper->offsetSetScript(1, sprintf("Raven.config('%s').install()", $publicApiKey));
$ravenjsConfig = json_encode($this->config['zend-sentry']['ravenjs-config']);
$viewHelper->offsetSetScript(1, sprintf("Raven.config('%s', %s).install()", $publicApiKey, $ravenjsConfig));
}

/**
Expand Down

0 comments on commit 057d35f

Please sign in to comment.