Adds listeners for checking/checkout events

This commit is contained in:
Till Deeke 2018-07-21 13:54:30 +02:00
parent 2d0df24ef3
commit 92a2a5ccbc
3 changed files with 46 additions and 0 deletions

View file

@ -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)
{
}
}

View file

@ -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)
{
}
}

View file

@ -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.