REFACTORING: refactor module service providers to reduce amoount of duplicated code
This commit is contained in:
@@ -20,12 +20,17 @@ class ArticleEventServiceProvider extends ServiceProvider
|
||||
*/
|
||||
protected $listen = [
|
||||
ApprovedComment::class => [LogCommentApproval::class],
|
||||
DeletedComment::class => [LogDeletedComment::class],
|
||||
CreatedComment::class => [LogNewComment::class],
|
||||
DeletedComment::class => [LogDeletedComment::class],
|
||||
CreatedComment::class => [LogNewComment::class],
|
||||
];
|
||||
|
||||
public function boot(DispatcherContract $events)
|
||||
{
|
||||
parent::boot($events); // TODO: Change the autogenerated stub
|
||||
parent::boot($events);
|
||||
}
|
||||
|
||||
protected function setModulePath()
|
||||
{
|
||||
$this->path = __DIR__;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user