From 9da58beccf0347d6b620dc66956325e2180923ff Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Wed, 11 Dec 2019 14:24:31 +0300 Subject: [PATCH] Add deprecation notices --- api/components/Tokens/Component.php | 4 ++++ common/models/MinecraftAccessKey.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/api/components/Tokens/Component.php b/api/components/Tokens/Component.php index 8d07e3f..4342c89 100644 --- a/api/components/Tokens/Component.php +++ b/api/components/Tokens/Component.php @@ -18,6 +18,10 @@ class Component extends BaseComponent { /** * @var string + * @deprecated In earlier versions of the application, JWT were signed by a synchronous encryption algorithm. + * Now asynchronous encryption is used instead, and this logic is saved for a transitional period. + * I think it can be safely removed, but I'll not do it yet, because at the time of writing the comment + * there were enough changes in the code already. */ public $hmacKey; diff --git a/common/models/MinecraftAccessKey.php b/common/models/MinecraftAccessKey.php index 8703f60..d1a18fe 100644 --- a/common/models/MinecraftAccessKey.php +++ b/common/models/MinecraftAccessKey.php @@ -25,6 +25,10 @@ use yii\db\ActiveRecord; * Behaviors: * @mixin TimestampBehavior * @mixin PrimaryKeyValueBehavior + * + * @deprecated This table is no longer used to store authorization information in Minecraft. + * In time it will be empty (see the cleanup console command) and when it does, this model, + * the table in the database and everything related to the old logic can be removed. */ class MinecraftAccessKey extends ActiveRecord {