Skip to content

Commit afeec4f

Browse files
authored
Merge pull request #187 from nocive/support_ignore_server_port_opt
Add support for ignore_server_port sentry option
2 parents 908f5ac + f24785a commit afeec4f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/DependencyInjection/Configuration.php

+1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ public function getConfigTreeBuilder()
8888
->scalarNode('mb_detect_order')->defaultNull()->end()
8989
->scalarNode('error_types')->defaultNull()->end()
9090
->scalarNode('app_path')->defaultValue('%kernel.root_dir%/..')->end()
91+
->booleanNode('ignore_server_port')->defaultFalse()->end()
9192
->arrayNode('excluded_app_paths')
9293
->defaultValue(
9394
[

test/DependencyInjection/SentryExtensionTest.php

+2-1
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 = 35;
20+
private const SUPPORTED_SENTRY_OPTIONS_COUNT = 36;
2121
private const LISTENER_TEST_PUBLIC_ALIAS = 'sentry.exception_listener.public_alias';
2222

2323
public function test_that_configuration_uses_the_right_default_values()
@@ -355,6 +355,7 @@ public function test_that_it_sets_all_sentry_options()
355355
'processorOption2' => 'asasdf',
356356
],
357357
],
358+
'ignore_server_port' => true,
358359
];
359360

360361
$this->assertCount(self::SUPPORTED_SENTRY_OPTIONS_COUNT, $options);

0 commit comments

Comments
 (0)