Skip to content

Commit a4bb786

Browse files
mcfedrJean85
authored andcommitted
Allow new excluded_exceptions config
1 parent 482c98d commit a4bb786

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
@@ -20,7 +20,7 @@
2020
},
2121
"require": {
2222
"php": "^5.6|^7.0",
23-
"sentry/sentry": "^1.8",
23+
"sentry/sentry": "^1.9",
2424
"symfony/config": "^2.7|^3.0",
2525
"symfony/console": "^2.7|^3.0",
2626
"symfony/dependency-injection": "^2.7|^3.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
@@ -15,7 +15,7 @@
1515

1616
class SentryExtensionTest extends TestCase
1717
{
18-
const SUPPORTED_SENTRY_OPTIONS_COUNT = 34;
18+
const SUPPORTED_SENTRY_OPTIONS_COUNT = 35;
1919

2020
public function test_that_configuration_uses_the_right_default_values()
2121
{
@@ -320,6 +320,10 @@ public function test_that_it_sets_all_sentry_options()
320320
'test1',
321321
'test2',
322322
],
323+
'excluded_exceptions' => [
324+
'test3',
325+
'test4',
326+
],
323327
'http_proxy' => 'http_proxy',
324328
'extra' => [
325329
'extra1' => 'extra1',

0 commit comments

Comments
 (0)