1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-21 08:51:34 +02:00
invoiceninja/app/Providers/EventServiceProvider.php

73 lines
1.8 KiB
PHP
Raw Normal View History

2018-10-04 19:10:43 +02:00
<?php
namespace App\Providers;
2019-04-20 03:19:43 +02:00
use App\Events\Client\ClientWasCreated;
use App\Events\Invoice\InvoiceWasMarkedSent;
2018-10-24 05:50:15 +02:00
use App\Events\User\UserCreated;
2019-04-21 14:28:28 +02:00
use App\Listeners\Client\CreatedClientActivity;
2018-10-24 05:50:15 +02:00
use App\Listeners\SendVerificationNotification;
2018-10-04 19:10:43 +02:00
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
class EventServiceProvider extends ServiceProvider
{
/**
* The event listener mappings for the application.
*
* @var array
*/
protected $listen = [
2018-10-24 05:50:15 +02:00
UserCreated::class => [
SendVerificationNotification::class,
2019-04-20 03:19:43 +02:00
],
// Clients
ClientWasCreated::class => [
2019-04-21 14:28:28 +02:00
CreatedClientActivity::class,
2019-04-21 14:24:26 +02:00
// 'App\Listeners\SubscriptionListener@createdClient',
2019-04-20 03:19:43 +02:00
],
'App\Events\ClientWasArchived' => [
'App\Listeners\ActivityListener@archivedClient',
],
'App\Events\ClientWasUpdated' => [
'App\Listeners\SubscriptionListener@updatedClient',
],
'App\Events\ClientWasDeleted' => [
'App\Listeners\ActivityListener@deletedClient',
'App\Listeners\SubscriptionListener@deletedClient',
'App\Listeners\HistoryListener@deletedClient',
],
'App\Events\ClientWasRestored' => [
'App\Listeners\ActivityListener@restoredClient',
],
//Invoices
[
InvoiceWasMarkedSent::class => [
CreateInvoiceInvitations::class
]
],
];
/**
* The subscriber classes to register.
*
* @var array
*/
protected $subscribe = [
2018-10-04 19:10:43 +02:00
];
/**
* Register any events for your application.
*
* @return void
*/
public function boot()
{
parent::boot();
//
}
}