linkorb / silex-provider-sentry
Provides a SentryService wrapper around the Sentry client.
v1.0.0
2017-12-16 20:08 UTC
Requires
- pimple/pimple: ^3.2
- sentry/sentry: ^1.8
- silex/silex: ^2.2
- symfony/event-dispatcher: ^3.4
- symfony/http-kernel: ^3.4
This package is auto-updated.
Last update: 2024-11-29 04:58:04 UTC
README
Provides a service which wraps Sentry's Raven_Client
.
Consumers of the service may use the sendException
method which immediately
sends the exception to the configured instance of Sentry. There is also the
queueException
method which queues exceptions for later sending after the
KernelEvents::TERMINATE
event has fired.
Install
Install using composer:-
$ composer require linkorb/silex-provider-sentry
Then configure and register the provide:-
// app/app.php
use LinkORB\Sentry\Provider\SentryServiceProvider;
...
$app->register(
new SentryServiceProvider,
[
'sentry.dsn' => "...",
'sentry.options' => [
...
],
]
);