mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 19:21:33 +00:00
updated streamline-setup v2
This commit is contained in:
Vendored
+38
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace OwenIt\Auditing;
|
||||
|
||||
if (app() instanceof \Illuminate\Foundation\Application) {
|
||||
class_alias(\Illuminate\Foundation\Support\Providers\EventServiceProvider::class, '\OwenIt\Auditing\ServiceProvider');
|
||||
} else {
|
||||
class_alias(\Laravel\Lumen\Providers\EventServiceProvider::class, '\OwenIt\Auditing\ServiceProvider');
|
||||
}
|
||||
|
||||
use Illuminate\Support\Facades\Event;
|
||||
use Illuminate\Support\Facades\Config;
|
||||
use OwenIt\Auditing\Events\AuditCustom;
|
||||
use OwenIt\Auditing\Events\DispatchAudit;
|
||||
use OwenIt\Auditing\Listeners\RecordCustomAudit;
|
||||
use OwenIt\Auditing\Listeners\ProcessDispatchAudit;
|
||||
|
||||
class AuditingEventServiceProvider extends ServiceProvider
|
||||
{
|
||||
protected $listen = [
|
||||
AuditCustom::class => [
|
||||
RecordCustomAudit::class,
|
||||
],
|
||||
DispatchAudit::class => [
|
||||
ProcessDispatchAudit::class,
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
* Register any events for your application.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
parent::boot();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user