Skip to content

Commit

Permalink
Use spaze/encryption v2.0, the API is the same, only the class name c…
Browse files Browse the repository at this point in the history
…hanges
  • Loading branch information
spaze committed Jan 19, 2024
1 parent feb2975 commit 6662c93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"phpstan/phpstan": "^1.9",
"phpstan/phpstan-nette": "^1.0",
"spaze/coding-standard": "^1.3",
"spaze/encryption": "^1.0"
"spaze/encryption": "^2.0"
},
"scripts": {
"lint": "vendor/bin/parallel-lint --colors src/",
Expand Down
6 changes: 3 additions & 3 deletions src/MysqlSessionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Nette\Database\Table\ActiveRow;
use Nette\SmartObject;
use SessionHandlerInterface;
use Spaze\Encryption\Symmetric\StaticKey as StaticKeyEncryption;
use Spaze\Encryption\SymmetricKeyEncryption;

/**
* Storing session to database.
Expand All @@ -21,7 +21,7 @@ class MysqlSessionHandler implements SessionHandlerInterface
use SmartObject;


private ?StaticKeyEncryption $encryptionService = null;
private ?SymmetricKeyEncryption $encryptionService = null;

private string $tableName;

Expand Down Expand Up @@ -75,7 +75,7 @@ public function setUnchangedUpdateDelay(int $delay): void
}


public function setEncryptionService(StaticKeyEncryption $encryptionService): void
public function setEncryptionService(SymmetricKeyEncryption $encryptionService): void
{
$this->encryptionService = $encryptionService;
}
Expand Down

0 comments on commit 6662c93

Please sign in to comment.