You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DependencyInjection/Configuration.php
+30-6Lines changed: 30 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -65,14 +65,38 @@ public function getConfigTreeBuilder()
65
65
->info("Set true to enable support for the '_method' request parameter to determine the intended HTTP method on POST requests. Note: When using the HttpCache, you need to call the method in your front controller instead")
66
66
->defaultTrue()
67
67
->end()
68
-
->arrayNode('trusted_proxies')// @deprecated in version 3.3, to be removed in 4.0
68
+
->arrayNode('trusted_proxies')
69
69
->beforeNormalization()
70
-
->ifTrue(function ($v) { returnempty($v); })
71
-
->then(function () { @trigger_error('The "framework.trusted_proxies" configuration key has been removed in Symfony 3.3. Use the Request::setTrustedProxies() method in your front controller instead.', E_USER_DEPRECATED); })
70
+
->ifTrue(function ($v) {
71
+
@trigger_error('The "framework.trusted_proxies" configuration key has been deprecated in Symfony 3.3. Use the Request::setTrustedProxies() method in your front controller instead.', E_USER_DEPRECATED);
->thenInvalid('The "framework.trusted_proxies" configuration key has been removed in Symfony 3.3. Use the Request::setTrustedProxies() method in your front controller instead.')
Copy file name to clipboardExpand all lines: Tests/DependencyInjection/ConfigurationTest.php
+69-3Lines changed: 69 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ public function testDoNoDuplicateDefaultFormResources()
45
45
46
46
/**
47
47
* @group legacy
48
-
* @expectedDeprecation The "framework.trusted_proxies" configuration key has been removed in Symfony 3.3. Use the Request::setTrustedProxies() method in your front controller instead.
48
+
* @expectedDeprecation The "framework.trusted_proxies" configuration key has been deprecated in Symfony 3.3. Use the Request::setTrustedProxies() method in your front controller instead.
@@ -56,7 +56,7 @@ public function testTrustedProxiesSetToNullIsDeprecated()
56
56
57
57
/**
58
58
* @group legacy
59
-
* @expectedDeprecation The "framework.trusted_proxies" configuration key has been removed in Symfony 3.3. Use the Request::setTrustedProxies() method in your front controller instead.
59
+
* @expectedDeprecation The "framework.trusted_proxies" configuration key has been deprecated in Symfony 3.3. Use the Request::setTrustedProxies() method in your front controller instead.
@@ -66,7 +66,8 @@ public function testTrustedProxiesSetToEmptyArrayIsDeprecated()
66
66
}
67
67
68
68
/**
69
-
* @expectedException \InvalidArgumentException
69
+
* @group legacy
70
+
* @expectedDeprecation The "framework.trusted_proxies" configuration key has been deprecated in Symfony 3.3. Use the Request::setTrustedProxies() method in your front controller instead.
0 commit comments