Giter Club home page Giter Club logo

kunstmaanlegacy / kunstmaansentrybundle Goto Github PK

View Code? Open in Web Editor NEW
21.0 14.0 10.0 329 KB

THIS REPO IS DEPRECATED: replaced by Monolog | The SentryBundle for Symfony2 helps binds the raven-php module into a Symfony2 bundle for easy use with the framework. It will autoload an exception handler into the framework, so that all uncaught errors are sent to a Sentry server.

Home Page: http://bundles.kunstmaan.be

License: MIT License

PHP 100.00%

kunstmaansentrybundle's Introduction

IMPORTANT: We recommend that you no longer use this bundle. Since it's inception Monolog has gotten built in Sentry support. See #18 and https://github.com/Seldaek/monolog/pull/76/files

SentryBundle for Symfony2

Build Status Total Downloads Latest Stable Version Analytics

This helps binds the raven-php module into a Symfony2 bundle for easy use with the framework. It will autoload an exception handler into the framework, so that all uncaught errors are sent to a Sentry server.

Important: This bundle is heavily inspired by Drew Butler's Airbrake bundle.

Installation requirements

You should be able to get Symfony 2.1 up and running before you can install the KunstmaanAdminBundle.

Installation instructions

Assuming you have installed composer.phar or composer binary:

$ composer require kunstmaan/sentry-bundle

Add the KunstmaanSentryBundle to your AppKernel.php file:

new Kunstmaan\SentryBundle\KunstmaanSentryBundle(),

Multiple environments support

To enable Sentry for a specific environment, add these lines to the config.yml file for the environment (ie. config_prod.yml) :

kunstmaan_sentry:
    enabled: true
    dsn: "http://nnn:[email protected]/1"

Note that Sentry logging is disabled by default.

kunstmaansentrybundle's People

Contributors

chrisjohnson00 avatar gromnan avatar kimausloos avatar krispypen avatar roderik avatar shieldo avatar toretto460 avatar wimvds avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kunstmaansentrybundle's Issues

If the bundle is disabled (ie: `enabled: false`), don't validate the dsn parameter

In recents commit, you introduced the enabled (and/or the dsn) option.
But if we don't enable the plugin, it still wants to validate the dsn parameter.

The path "kunstmaan_sentry.dsn" cannot contain an empty value, but got null.

If we set :

kunstmaan_sentry:
    enabled: false

You shouldn't try to validate other parameters since it is not enabled.
Or at least, you should allow :

kunstmaan_sentry:
    enabled: false
    dsn: null

Or

kunstmaan_sentry:
    enabled: false
    dsn: ''

[Insight] Unused use statement should be avoided

in EventListener/ExceptionListener.php, line 5

The class Symfony\Component\HttpKernel\Kernel is declared but never used. You should remove the use statement.

<?php
namespace Kunstmaan\SentryBundle\EventListener;

use Kunstmaan\SentryBundle\Raven\Raven;
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\HttpKernel\Exception\HttpException;
use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent;

/**
 * ExceptionListener

Posted from SensioLabsInsight

Change the way to enable multiple environments

Instead of doing:

# config.yml
kunstmaan_sentry:
    environments: ['prod', 'stage', 'my_optional_env']

You should be able to just do

# config.yml
kunstmaan_sentry:
    enabled: true
# config_dev.yml
kunstmaan_sentry:
    enabled: false

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.