From f5bebed6860a14743f43a50d05ae68eff48f226d 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/DependencyInjection/Configuration.php | 3 +++ test/DependencyInjection/SentryExtensionTest.php | 6 +++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index ff1efce6..0958842d 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ "require": { "php": "^7.1", "jean85/pretty-package-versions": "^1.0", - "sentry/sentry": "^1.8", + "sentry/sentry": "^1.9", "symfony/config": "^3.0||^4.0", "symfony/console": "^3.3||^4.0", "symfony/dependency-injection": "^3.0||^4.0", diff --git a/src/DependencyInjection/Configuration.php b/src/DependencyInjection/Configuration.php index f2ec540f..9de88acd 100644 --- a/src/DependencyInjection/Configuration.php +++ b/src/DependencyInjection/Configuration.php @@ -72,6 +72,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 f74143ad..28b7f59a 100644 --- a/test/DependencyInjection/SentryExtensionTest.php +++ b/test/DependencyInjection/SentryExtensionTest.php @@ -16,7 +16,7 @@ class SentryExtensionTest extends TestCase { - private const SUPPORTED_SENTRY_OPTIONS_COUNT = 34; + private const SUPPORTED_SENTRY_OPTIONS_COUNT = 35; private const LISTENER_TEST_PUBLIC_ALIAS = 'sentry.exception_listener.public_alias'; public function test_that_configuration_uses_the_right_default_values() @@ -322,6 +322,10 @@ public function test_that_it_sets_all_sentry_options() 'test1', 'test2', ], + 'excluded_exceptions' => [ + 'test3', + 'test4', + ], 'http_proxy' => 'http_proxy', 'extra' => [ 'extra1' => 'extra1',