From 8e412a690433975621bd4e098bf3e73756418f2b Mon Sep 17 00:00:00 2001 From: Fred Cox Date: Thu, 19 Apr 2018 13:05:52 +0300 Subject: [PATCH] Allow new excluded_exceptions config --- composer.json | 2 +- src/Sentry/SentryBundle/DependencyInjection/Configuration.php | 3 +++ test/DependencyInjection/SentryExtensionTest.php | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 3e513d7d..fd3f9876 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ ], "require": { "php": ">=5.3.3", - "sentry/sentry": ">=1.5.0", + "sentry/sentry": "^1.9", "symfony/config": "^2.7|^3.0", "symfony/console": "^2.7|^3.0", "symfony/dependency-injection": "^2.7|^3.0", diff --git a/src/Sentry/SentryBundle/DependencyInjection/Configuration.php b/src/Sentry/SentryBundle/DependencyInjection/Configuration.php index b50addb0..b45be75d 100644 --- a/src/Sentry/SentryBundle/DependencyInjection/Configuration.php +++ b/src/Sentry/SentryBundle/DependencyInjection/Configuration.php @@ -73,6 +73,9 @@ public function getConfigTreeBuilder() ->arrayNode('exclude') ->prototype('scalar')->end() ->end() + ->arrayNode('excluded_exceptions') + ->prototype('scalar')->end() + ->end() ->scalarNode('http_proxy')->defaultNull()->end() ->arrayNode('extra') ->prototype('scalar')->end() diff --git a/test/DependencyInjection/SentryExtensionTest.php b/test/DependencyInjection/SentryExtensionTest.php index b225fc3c..af7d76c4 100644 --- a/test/DependencyInjection/SentryExtensionTest.php +++ b/test/DependencyInjection/SentryExtensionTest.php @@ -595,6 +595,10 @@ public function test_that_it_sets_all_options() 'test1', 'test2', ), + 'excluded_exceptions' => array( + 'test3', + 'test4', + ), 'http_proxy' => 'http_proxy', 'extra' => array( 'extra1' => 'extra1',