chore: Refactor encryptable models

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2024-03-09 13:43:27 +01:00
parent d17b50183a
commit 522badaa2e
4 changed files with 106 additions and 60 deletions

View File

@@ -25,6 +25,7 @@
namespace SP\Infrastructure\Plugin\Repositories;
use SP\DataModel\EncryptedModel;
use SP\Domain\Common\Attributes\Encryptable;
use SP\Domain\Common\Models\HydratableModel;
use SP\Domain\Common\Models\Model;
use SP\Domain\Common\Models\SerializedModel;
@@ -32,6 +33,7 @@ use SP\Domain\Common\Models\SerializedModel;
/**
* Class PluginDataModel
*/
#[Encryptable('data', 'key')]
final class PluginDataModel extends Model implements HydratableModel
{
use SerializedModel;