Skip to content

Commit

Permalink
Address BC issue when TwoFactorFirewallConfig is instantiated by fore…
Browse files Browse the repository at this point in the history
…ign code
  • Loading branch information
scheb committed Jan 24, 2021
1 parent 28952fa commit 38406e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/bundle/Security/TwoFactor/TwoFactorFirewallConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,13 @@ public function __construct(
array $options,
string $firewallName,
HttpUtils $httpUtils,
RequestDataReader $requestDataReader
?RequestDataReader $requestDataReader = null
) {
$this->options = $options;
$this->firewallName = $firewallName;
$this->httpUtils = $httpUtils;
$this->requestDataReader = $requestDataReader;
// Compatibility for bundle version <= 5.4
$this->requestDataReader = $requestDataReader ?? new RequestDataReader();
}

public function getFirewallName(): string
Expand Down

0 comments on commit 38406e6

Please sign in to comment.