Skip to content

Commit f5bebed

Browse files
committed
Allow new excluded_exceptions config
1 parent a835577 commit f5bebed

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"require": {
2222
"php": "^7.1",
2323
"jean85/pretty-package-versions": "^1.0",
24-
"sentry/sentry": "^1.8",
24+
"sentry/sentry": "^1.9",
2525
"symfony/config": "^3.0||^4.0",
2626
"symfony/console": "^3.3||^4.0",
2727
"symfony/dependency-injection": "^3.0||^4.0",

src/DependencyInjection/Configuration.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ public function getConfigTreeBuilder()
7272
->arrayNode('exclude')
7373
->prototype('scalar')->end()
7474
->end()
75+
->arrayNode('excluded_exceptions')
76+
->prototype('scalar')->end()
77+
->end()
7578
->scalarNode('http_proxy')->defaultNull()->end()
7679
->arrayNode('extra')
7780
->prototype('scalar')->end()

test/DependencyInjection/SentryExtensionTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
class SentryExtensionTest extends TestCase
1818
{
19-
private const SUPPORTED_SENTRY_OPTIONS_COUNT = 34;
19+
private const SUPPORTED_SENTRY_OPTIONS_COUNT = 35;
2020
private const LISTENER_TEST_PUBLIC_ALIAS = 'sentry.exception_listener.public_alias';
2121

2222
public function test_that_configuration_uses_the_right_default_values()
@@ -322,6 +322,10 @@ public function test_that_it_sets_all_sentry_options()
322322
'test1',
323323
'test2',
324324
],
325+
'excluded_exceptions' => [
326+
'test3',
327+
'test4',
328+
],
325329
'http_proxy' => 'http_proxy',
326330
'extra' => [
327331
'extra1' => 'extra1',

0 commit comments

Comments
 (0)