Commit 5206dd19 by Mohammad Izzat Johari

refactor

parent 3356b890
{ {
"name": "integration/hsmcrypto", "name": "laravelhsm/hsmcrypto",
"description": "Laravel HSM Encryption/Decryption via PKCS#11", "description": "Laravel HSM Encryption/Decryption via PKCS#11",
"type": "library", "type": "library",
"license": "MIT", "license": "MIT",
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
], ],
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"Integration\\HsmCrypto\\": "src/" "LaravelHsm\\HsmCrypto\\": "src/"
} }
}, },
"require": { "require": {
...@@ -21,10 +21,10 @@ ...@@ -21,10 +21,10 @@
"extra": { "extra": {
"laravel": { "laravel": {
"providers": [ "providers": [
"integration\\HsmCrypto\\HsmCryptoServiceProvider" "laravelhsm\\HsmCrypto\\HsmCryptoServiceProvider"
], ],
"aliases": { "aliases": {
"HsmCrypto": "integration\\HsmCrypto\\Facades\\HsmCrypto" "HsmCrypto": "laravelhsm\\HsmCrypto\\Facades\\HsmCrypto"
} }
} }
} }
......
<?php <?php
namespace integration\HsmCrypto\Facades; namespace laravelhsm\HsmCrypto\Facades;
use Illuminate\Support\Facades\Facade; use Illuminate\Support\Facades\Facade;
......
<?php <?php
namespace integration\HsmCrypto; namespace laravelhsm\HsmCrypto;
use Illuminate\Support\ServiceProvider; 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 <?php
namespace integration\HsmCrypto; namespace laravelhsm\HsmCrypto;
use Illuminate\Support\Facades\Log; use Illuminate\Support\Facades\Log;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use Illuminate\Support\Facades\File; use Illuminate\Support\Facades\File;
use integration\HsmCrypto\Models\HsmLog; use laravelhsm\HsmCrypto\Models\HsmLog;
use setasign\Fpdi\Fpdi; use setasign\Fpdi\Fpdi;
class Pkcs11Command 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