mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Adds listeners for checking/checkout events
This commit is contained in:
parent
2d0df24ef3
commit
92a2a5ccbc
18
app/Listeners/SendingCheckInNotificationsListener.php
Normal file
18
app/Listeners/SendingCheckInNotificationsListener.php
Normal 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)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
17
app/Listeners/SendingCheckOutNotificationsListener.php
Normal file
17
app/Listeners/SendingCheckOutNotificationsListener.php
Normal 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)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue