Commit 5206dd19 by Mohammad Izzat Johari

refactor

parent 3356b890
{
"name": "integration/hsmcrypto",
"name": "laravelhsm/hsmcrypto",
"description": "Laravel HSM Encryption/Decryption via PKCS#11",
"type": "library",
"license": "MIT",
......@@ -11,7 +11,7 @@
],
"autoload": {
"psr-4": {
"Integration\\HsmCrypto\\": "src/"
"LaravelHsm\\HsmCrypto\\": "src/"
}
},
"require": {
......@@ -21,10 +21,10 @@
"extra": {
"laravel": {
"providers": [
"integration\\HsmCrypto\\HsmCryptoServiceProvider"
"laravelhsm\\HsmCrypto\\HsmCryptoServiceProvider"
],
"aliases": {
"HsmCrypto": "integration\\HsmCrypto\\Facades\\HsmCrypto"
"HsmCrypto": "laravelhsm\\HsmCrypto\\Facades\\HsmCrypto"
}
}
}
......
<?php
namespace integration\HsmCrypto\Facades;
namespace laravelhsm\HsmCrypto\Facades;
use Illuminate\Support\Facades\Facade;
......
<?php
namespace integration\HsmCrypto;
namespace laravelhsm\HsmCrypto;
use Illuminate\Support\ServiceProvider;
......
<?php
namespace laravelhsm\HsmCrypto\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class HsmLog extends Model
{
use HasFactory;
protected $table = 'hsm_log';
protected $fillable = ['event', 'subject','response', 'causer'];
}
<?php
namespace integration\HsmCrypto;
namespace laravelhsm\HsmCrypto;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Str;
use Illuminate\Support\Facades\File;
use integration\HsmCrypto\Models\HsmLog;
use laravelhsm\HsmCrypto\Models\HsmLog;
use setasign\Fpdi\Fpdi;
class Pkcs11Command
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment