- 
                Notifications
    You must be signed in to change notification settings 
- Fork 402
Added support to specify a different implementation of the queue listener #1032
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
|  | @@ -2,6 +2,7 @@ | |
|  | ||
| namespace OwenIt\Auditing; | ||
|  | ||
| use Illuminate\Support\Facades\Config; | ||
| use Illuminate\Support\Facades\Event; | ||
| use Illuminate\Support\ServiceProvider; | ||
| use OwenIt\Auditing\Console\AuditDriverCommand; | ||
|  | @@ -26,7 +27,7 @@ public function boot() | |
| $this->mergeConfigFrom(__DIR__.'/../config/audit.php', 'audit'); | ||
|  | ||
| Event::listen(AuditCustom::class, RecordCustomAudit::class); | ||
| Event::listen(DispatchAudit::class, ProcessDispatchAudit::class); | ||
| Event::listen(DispatchAudit::class, Config::string('audit.queue.listener', ProcessDispatchAudit::class)); | ||
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @willpower232 hi, maybe an interface check, to prevent someone from setting up a class that is not a listener, or some non-existent class There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we are going to have settable listeners, shouldn't  There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @markieo1 what do you think about adding an option for the custom audit and then using  There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is a good option, another could be to create a new contract that requires having a  | ||
| } | ||
|  | ||
| /** | ||
|  | ||
Uh oh!
There was an error while loading. Please reload this page.