A free open source IT asset/license management system
Adds listeners for checking/checkout events
Till Deeke92a2a5ccbc8c
diff --git a/app/Listeners/SendingCheckInNotificationsListener.php b/app/Listeners/SendingCheckInNotificationsListener.phpnew file mode 100644index 0000000000..cb5a32d67f--- /dev/null+++ b/app/Listeners/SendingCheckInNotificationsListener.php@@ -0,0 +1,18 @@+<?php++namespace App\Listeners;++class SendingCheckInNotificationsListener+{++ /**+ * Register the listeners for the subscriber.+ *+ * @param Illuminate\Events\Dispatcher $events+ */+ public function subscribe($events)+ {++ }++}\ No newline at end of filediff --git a/app/Listeners/SendingCheckOutNotificationsListener.php b/app/Listeners/SendingCheckOutNotificationsListener.phpnew file mode 100644index 0000000000..f9d61eef02--- /dev/null+++ b/app/Listeners/SendingCheckOutNotificationsListener.php@@ -0,0 +1,17 @@+<?php++namespace App\Listeners;++class SendingCheckOutNotificationsListener+{+ /**+ * Register the listeners for the subscriber.+ *+ * @param Illuminate\Events\Dispatcher $events+ */+ public function subscribe($events)+ {++ }++}\ No newline at end of filediff --git a/app/Providers/EventServiceProvider.php b/app/Providers/EventServiceProvider.phpindex 9d3e0f8a98..822f82c8cf 100644--- a/app/Providers/EventServiceProvider.php+++ b/app/Providers/EventServiceProvider.php@@ -3,6 +3,8 @@namespace App\Providers;use Illuminate\Support\Facades\Event;+use App\Listeners\SendingCheckInNotificationsListener;+use App\Listeners\SendingCheckOutNotificationsListener;use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;class EventServiceProvider extends ServiceProvider@@ -23,6 +25,15 @@ class EventServiceProvider extends ServiceProvider],];+ /**+ * The subscriber classes to register.+ *+ * @var array+ */+ protected $subscribe = [+ SendingCheckOutNotificationsListener::class,+ SendingCheckInNotificationsListener::class,+ ];/*** Register any events for your application.