Skip to content

Commit 61d8591

Browse files
update dependencies
1 parent 636eaea commit 61d8591

File tree

3 files changed

+20
-26
lines changed

3 files changed

+20
-26
lines changed

Module.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ protected function setupJavascriptLogging(MvcEvent $event)
214214
{
215215
$viewHelper = $event->getApplication()->getServiceManager()->get('viewhelpermanager')->get('headscript');
216216
/** @noinspection PhpUndefinedMethodInspection */
217-
$viewHelper->offsetSetFile(0, '//cdn.ravenjs.com/3.8.0/raven.min.js');
217+
$viewHelper->offsetSetFile(0, '//cdn.ravenjs.com/3.17.0/raven.min.js');
218218
$publicApiKey = $this->convertKeyToPublic($this->config['zend-sentry']['sentry-api-key']);
219219
/** @noinspection PhpUndefinedMethodInspection */
220220
$viewHelper->offsetSetScript(1, sprintf("Raven.config('%s').install()", $publicApiKey));

README.md

Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,29 @@
1-
A Zend Framework 2 and 3 module that lets you log exceptions, errors or whatever you wish to the Sentry service.
1+
A Zend Framework module that lets you log exceptions, errors or whatever you wish to the Sentry service.
22

33
Scrutizier analysis: [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/cloud-solutions/zend-sentry/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/cloud-solutions/zend-sentry/?branch=master) [![Build Status](https://scrutinizer-ci.com/g/cloud-solutions/zend-sentry/badges/build.png?b=master)](https://scrutinizer-ci.com/g/cloud-solutions/zend-sentry/build-status/master)
44

55
ZendSentry is released under the New BSD License.
66

7-
The current version of ZendSentry for ZF2 is `2.3.1`. It supports Zend Framework >= 2.5.3. For older versions see the legacy branch and tags in the `1.*` series. For ZF3 compatible versions, please install releases in the `3.*` branch.
7+
The current version of ZendSentry for ZF2 is `2.4.0`. It supports Zend Framework >= 2.5.3. For older versions see the legacy branch and tags in the `1.*` series. For ZF3 compatible versions, please install releases in the `3.*` branch.
88

9-
#Latest Changes
10-
- Possibility to add extra context to simple logs
11-
- Add ZF3 compatible branch
12-
- Switch Raven dependency to new official sentry/sentry repository
13-
- Fix problem introduced by ZF BC break in ZF version 2.5.3 and branch of legacy branch
14-
15-
#Important Changes
16-
- 3.0.1: ViewHelper fix for ZF3
17-
- 3.0.0: Update to latest SDK dependencies and add ZF3 compatibility fixes
18-
- 2.2.1: Update to `sentry/sentry` 1.5.0 and `ravenjs` 3.8.0, Fix: Only detach HttpExceptionStrategy if it exists
19-
- 2.2.0: Update to `sentry/sentry` 0.21.2
9+
# Important Changes
10+
- 3.2.0 and 2.4.0: Upgrade dependencies to `sentry/sentry` 1.7.0 and `ravenjs` 3.17.0
11+
- 3.0.1: ViewHelper fix
12+
- 3.0.0: First ZF2 release with latest sentry SDK dependencies and ZF3 compatibility fixes
13+
- 2.2.1: Fix: Only detach HttpExceptionStrategy if it exists
2014
- 2.0.0: New major version for ZF >=2.5.3
2115
- 1.5.2: Configurable error messages
2216
- 1.4.0: Raven configuration can now be overwritten through ZendSentry configuration if needed
2317
- 1.2.0: supports tags, every logging action returns the Sentry event_id, Raven is registered as Service
2418
- 0.3.1: dedicated CLI ExceptionStrategy (credits to Mateusz Mirosławski)
2519

26-
#Introduction
20+
# Introduction
2721

28-
##What's Sentry?
22+
## What's Sentry?
2923
[Sentry](https://www.getsentry.com/welcome/) is an online service to which you can log anything including your
3024
exceptions and errors. Sentry creates nice reports in real time and aggregates your logged data for you.
3125

32-
##What's ZendSentry
26+
## What's ZendSentry
3327
It is a module that builds the bridge between your Zend Framework 2 application and the Sentry service. It's extremely
3428
easy to setup and does a lot of things out-of-the-box.
3529

@@ -44,14 +38,14 @@ Current features:
4438
* Raven is registered as a Service
4539
* override Raven config defaults
4640

47-
#Installation
41+
# Installation
4842

4943
This module is available on [Packagist](https://packagist.org/packages/cloud-solutions/zend-sentry).
5044
In your project's `composer.json` use:
5145

5246
{
5347
"require": {
54-
"cloud-solutions/zend-sentry": "2.3.1"
48+
"cloud-solutions/zend-sentry": "2.4.0"
5549
}
5650

5751
Run `php composer.phar update` to download it into your vendor folder and setup autoloading.
@@ -63,14 +57,14 @@ Add `ZendSentry` to the modules array in your `application.config.php`, preferab
6357

6458
That's it. There's nothing more you need to do, everything works at that stage, [try it](#try-it). Happy logging!
6559

66-
#Basic Automatic Usage
60+
# Basic Automatic Usage
6761

6862
Again, you don't need to write a single line of code to make this work. The default settings will make sure Sentry
6963
is registered as both error and exception handler, [try it](#try-it) by triggering and error or throwing around some
7064
exceptions. You should instantly see them in your Sentry dashboard. ZendSentry also packages its own ExceptionStrategies
7165
to make sure, exceptions ZF would otherwise intercept, are logged.
7266

73-
#Manual Usage
67+
# Manual Usage
7468
Additonally, the module registers a log event listener on application level. So you can trigger custom log events from
7569
anywhere in your application.
7670

@@ -107,7 +101,7 @@ exceptions manually by using the respective listener directly:
107101
$eventID = $result->last();
108102
}
109103

110-
#Using Tags
104+
# Using Tags
111105

112106
You can also pass your own tags to Sentry. The service will automatically create filtering and sorting for these tags.
113107
When using the `log` event, you can optionally pass tags like this:
@@ -131,7 +125,7 @@ If using the `logException` event manually, you can also pass along tags:
131125

132126
See how to use tags for automagically logged exceptions below.
133127

134-
#Raven as Service
128+
# Raven as Service
135129

136130
The module registers the Raven_Client as an application wide service. Usually you don't want to access it directly
137131
because triggering the event listeners leaves you with cleaner code. One example where the direct usage of Raven can
@@ -156,7 +150,7 @@ You might want to do something like this e.g. in your `AbstractActionController:
156150
);
157151
}
158152

159-
#Configuration options
153+
# Configuration options
160154

161155
Just for the record, a copy of the actual global configuration options:
162156

@@ -227,7 +221,7 @@ Just for the record, a copy of the actual global configuration options:
227221
*/
228222
'raven-config' => array(),
229223

230-
#Try it
224+
# Try it
231225
A few ideas how to try the different features from a Controller or View:
232226

233227
// Test logging of PHP errors

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cloud-solutions/zend-sentry",
3-
"description": "A Zend Framework 2 module that lets you log to the Sentry service.",
3+
"description": "A Zend Framework module that lets you log to the Sentry service.",
44
"keywords": ["log", "logging", "sentry", "raven", "zend-framework"],
55
"homepage": "https://github.com/cloud-solutions/zend-sentry",
66
"type": "library",

0 commit comments

Comments
 (0)