Skip to content

Commit ac71fa3

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

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

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)