Skip to content

Commit ae289b7

Browse files
committed
Fix config issues
Signed-off-by: Kevin Ullyott <[email protected]>
1 parent f65722b commit ae289b7

File tree

3 files changed

+4
-14
lines changed

3 files changed

+4
-14
lines changed

config/audit.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@
166166
*/
167167

168168
'queue' => [
169-
'dispatch_listener' => \OwenIt\Auditing\Listeners\ProcessDispatchAudit::class,
170169
'connection' => 'sync',
171170
'queue' => 'default',
172171
'delay' => 0,

src/AuditingEventServiceProvider.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ class AuditingEventServiceProvider extends ServiceProvider
2121
AuditCustom::class => [
2222
RecordCustomAudit::class,
2323
],
24+
DispatchAudit::class => [
25+
ProcessDispatchAudit::class,
26+
],
2427
];
2528

2629
/**
@@ -31,7 +34,5 @@ class AuditingEventServiceProvider extends ServiceProvider
3134
public function boot()
3235
{
3336
parent::boot();
34-
35-
Event::listen(DispatchAudit::class, Config::get('audit.queue.dispatch_listener', ProcessDispatchAudit::class));
3637
}
3738
}

src/AuditingServiceProvider.php

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use OwenIt\Auditing\Console\InstallCommand;
1010
use OwenIt\Auditing\Contracts\Auditor;
1111

12-
class AuditingServiceProvider extends ServiceProvider implements DeferrableProvider
12+
class AuditingServiceProvider extends ServiceProvider
1313
{
1414
/**
1515
* Bootstrap the service provider.
@@ -64,14 +64,4 @@ private function registerPublishing()
6464
}
6565
}
6666
}
67-
68-
/**
69-
* {@inheritdoc}
70-
*/
71-
public function provides()
72-
{
73-
return [
74-
Auditor::class,
75-
];
76-
}
7767
}

0 commit comments

Comments
 (0)