Skip to content

Commit

Permalink
fixup! wip: refactor PHS generation
Browse files Browse the repository at this point in the history
  • Loading branch information
shtrom committed Mar 4, 2024
1 parent d6cc76c commit 1a9608b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Request/Init.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ class Init
*/
private $preHashStringFactory;

/**
* @var PreHashStringInterface
*/
private $preHashStringGenerator;

/**
* Instantiate this class with all security and request data. It
* will be used to create a signature.
Expand Down Expand Up @@ -343,7 +348,7 @@ public function generatePreHashString()

// Create a pre-hash string based on the security credentials
// The order is important
foreach ($this->validSecurityKeys as $key) {
foreach (LegacyPreHashString::$validSecurityKeys as $key) {
if (array_key_exists($key, $this->securityPacket)) {
$signatureArray[] = $this->securityPacket[$key];
}
Expand Down

0 comments on commit 1a9608b

Please sign in to comment.