Skip to content

Commit 5cee386

Browse files
author
markushausammann
committed
update to latest sentry libraries and adjust dependencies for ZF3
1 parent 21179dc commit 5cee386

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

Module.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ protected function setupExceptionLogging(MvcEvent $event)
210210
protected function setupJavascriptLogging(MvcEvent $event)
211211
{
212212
$viewHelper = $event->getApplication()->getServiceManager()->get('viewhelpermanager')->get('headscript');
213-
$viewHelper->offsetSetFile(0, '//cdn.ravenjs.com/3.0.1/raven.min.js');
213+
$viewHelper->offsetSetFile(0, '//cdn.ravenjs.com/3.8.0/raven.min.js');
214214
$publicApiKey = $this->convertKeyToPublic($this->config['zend-sentry']['sentry-api-key']);
215215
$viewHelper->offsetSetScript(1, sprintf("Raven.config('%s').install()", $publicApiKey));
216216
}

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@ Scrutizier analysis: [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/c
44

55
ZendSentry is released under the New BSD License.
66

7-
The current version of ZendSentry is `2.2.0`. It supports Zend Framework >= 2.5.3. For older versions see the legacy branch and tags in the 1.* series.
7+
The current version of ZendSentry for ZF3 is `3.0.0`. It supports Zend Framework >= 3.0. For other versions see tags in the 1.* series as well as 2.* series.
88

99
#Latest Changes
1010
- Switch Raven dependency to new official sentry/sentry repository
1111
- Update ravenjs to latest version
1212
- Fix problem introduced by ZF BC break in ZF version 2.5.3 and branch of legacy branch
1313

1414
#Important Changes
15+
- 3.0.0: First ZF2 release with latest sentry SDK dependencies and ZF3 compatibility fixes
16+
- 2.2.1: Update to `sentry/sentry` 1.5.0 and `ravenjs` 3.8.0, Fix: Only detach HttpExceptionStrategy if it exists
1517
- 2.2.0: Update to `sentry/sentry` 0.21.2
1618
- 2.0.0: New major version for ZF >=2.5.3
1719
- 1.5.2: Configurable error messages
@@ -47,7 +49,7 @@ In your project's `composer.json` use:
4749

4850
{
4951
"require": {
50-
"cloud-solutions/zend-sentry": "2.2.0"
52+
"cloud-solutions/zend-sentry": "3.0.0"
5153
}
5254

5355
Run `php composer.phar update` to download it into your vendor folder and setup autoloading.

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"keywords": ["log", "logging", "sentry", "raven", "zend-framework"],
55
"homepage": "https://github.com/cloud-solutions/zend-sentry",
66
"type": "library",
7-
"version": "2.2.0",
7+
"version": "3.0.0",
88
"license": "New BSD License",
99
"authors": [
1010
{
@@ -14,10 +14,10 @@
1414
],
1515
"require": {
1616
"php": "^5.5 || ^7.0",
17-
"sentry/sentry": "~0.22.0"
17+
"sentry/sentry": "1.5.0"
1818
},
1919
"conflict": {
20-
"zendframework/zendframework": "<2.5.3"
20+
"zendframework/zendframework": "<3.0.0"
2121
},
2222
"autoload": {
2323
"psr-0": {

0 commit comments

Comments
 (0)