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 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: ''

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

[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

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.