Skip to content

Commit

Permalink
Allow new excluded_exceptions config
Browse files Browse the repository at this point in the history
  • Loading branch information
mcfedr committed May 24, 2018
1 parent 8450f7f commit b5082ea
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions src/DependencyInjection/Configuration.php
Expand Up @@ -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()
Expand Down
6 changes: 5 additions & 1 deletion test/DependencyInjection/SentryExtensionTest.php
Expand Up @@ -17,7 +17,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()
Expand Down Expand Up @@ -323,6 +323,10 @@ public function test_that_it_sets_all_sentry_options()
'test1',
'test2',
],
'excluded_exceptions' => [
'test3',
'test4',
],
'http_proxy' => 'http_proxy',
'extra' => [
'extra1' => 'extra1',
Expand Down

0 comments on commit b5082ea

Please sign in to comment.