From 89cf7fb87470d1ce61de91528e067c979b9263df Mon Sep 17 00:00:00 2001 From: Bizley Date: Mon, 27 Feb 2023 09:10:36 +0100 Subject: [PATCH] Cleanup --- src/Jwt.php | 5 +---- tests/SignerTest.php | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Jwt.php b/src/Jwt.php index c647ada..fa8f26c 100644 --- a/src/Jwt.php +++ b/src/Jwt.php @@ -50,8 +50,6 @@ class Jwt extends Component public const EDDSA = 'EdDSA'; public const BLAKE2B = 'BLAKE2B'; - public const STORE_IN_MEMORY = 'in_memory'; - public const METHOD_PLAIN = 'plain'; public const METHOD_BASE64 = 'base64'; public const METHOD_FILE = 'file'; @@ -60,7 +58,6 @@ class Jwt extends Component public const ASYMMETRIC = 'asymmetric'; public const KEY = 'key'; - public const STORE = 'store'; public const METHOD = 'method'; public const PASSPHRASE = 'passphrase'; @@ -79,7 +76,7 @@ class Jwt extends Component * 'method' => Jwt::METHOD_PLAIN, * 'passphrase' => '', * ] - * In case a simple string is provided and it does start with 'file://' (direct file path) or '@' (Yii alias) + * In case a simple string is provided, and it does start with 'file://' (direct file path) or '@' (Yii alias) * the following configuration is assumed: * [ * 'key' => // the original given value, diff --git a/tests/SignerTest.php b/tests/SignerTest.php index 3391585..1f91544 100644 --- a/tests/SignerTest.php +++ b/tests/SignerTest.php @@ -129,7 +129,6 @@ public static function providerForSigners(): iterable 'signer' => Jwt::RS256, 'signingKey' => [ Jwt::KEY => 'file://' . __DIR__ . '/data/rs256.key', - Jwt::STORE => Jwt::STORE_IN_MEMORY, Jwt::METHOD => Jwt::METHOD_FILE, ], 'verifyingKey' => 'file://' . __DIR__ . '/data/rs256.key.pub',