Skip to content

Commit b5082ea

Browse files
committed
Allow new excluded_exceptions config
1 parent 8450f7f commit b5082ea

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
@@ -17,7 +17,7 @@
1717

1818
class SentryExtensionTest extends TestCase
1919
{
20-
private const SUPPORTED_SENTRY_OPTIONS_COUNT = 34;
20+
private const SUPPORTED_SENTRY_OPTIONS_COUNT = 35;
2121
private const LISTENER_TEST_PUBLIC_ALIAS = 'sentry.exception_listener.public_alias';
2222

2323
public function test_that_configuration_uses_the_right_default_values()
@@ -323,6 +323,10 @@ public function test_that_it_sets_all_sentry_options()
323323
'test1',
324324
'test2',
325325
],
326+
'excluded_exceptions' => [
327+
'test3',
328+
'test4',
329+
],
326330
'http_proxy' => 'http_proxy',
327331
'extra' => [
328332
'extra1' => 'extra1',

0 commit comments

Comments
 (0)