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 Apr 19, 2018
1 parent a835577 commit ac71fa3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
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 @@ -16,7 +16,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 @@ -322,6 +322,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 ac71fa3

Please sign in to comment.