Skip to content

Commit 4cee5ec

Browse files
committed
Add http_proxy to the configuration options
1 parent e377ccb commit 4cee5ec

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/DependencyInjection/Configuration.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ public function getConfigTreeBuilder()
7171
->defaultValue($defaultValues->getExcludedExceptions())
7272
->scalarPrototype()->end()
7373
->end()
74+
->scalarNode('http_proxy')
75+
->end()
7476
// TODO -- integrations
7577
->scalarNode('logger')
7678
->end()

test/DependencyInjection/ConfigurationTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
class ConfigurationTest extends TestCase
1313
{
14-
public const SUPPORTED_SENTRY_OPTIONS_COUNT = 18;
14+
public const SUPPORTED_SENTRY_OPTIONS_COUNT = 19;
1515

1616
public function testDataProviderIsMappingTheRightNumberOfOptions(): void
1717
{
@@ -91,6 +91,7 @@ public function optionValuesProvider(): array
9191
['enable_compression', false],
9292
['environment', 'staging'],
9393
['error_types', E_ALL],
94+
['http_proxy', '1.2.3.4:5678'],
9495
['in_app_exclude', ['some/path']],
9596
['excluded_exceptions', [\Throwable::class]],
9697
['logger', 'some-logger'],
@@ -132,6 +133,7 @@ public function invalidValuesProvider(): array
132133
['enable_compression', 'string'],
133134
['environment', ''],
134135
['error_types', []],
136+
['http_proxy', []],
135137
['in_app_exclude', 'some/single/path'],
136138
['excluded_exceptions', 'some-string'],
137139
['logger', []],

0 commit comments

Comments
 (0)