linkorb/silex-provider-sentry

Provides a SentryService wrapper around the Sentry client.

v1.0.0 2017-12-16 20:08 UTC

This package is auto-updated.

Last update: 2024-10-29 04:53:26 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' => [
            ...
        ],
    ]
);