2019-11-16 10:21:14 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
|
|
use Illuminate\Foundation\Support\Providers\EventServiceProvider as Provider;
|
|
|
|
|
|
|
|
class Event extends Provider
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The event listener mappings for the application.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $listen = [
|
|
|
|
'App\Events\Install\UpdateFinished' => [
|
2019-12-13 17:03:56 +03:00
|
|
|
'App\Listeners\Update\CreateModuleUpdatedHistory',
|
2019-11-16 10:21:14 +03:00
|
|
|
'App\Listeners\Update\V20\Version200',
|
2020-02-24 17:36:04 +03:00
|
|
|
'App\Listeners\Update\V20\Version203',
|
2020-03-10 15:02:19 +03:00
|
|
|
'App\Listeners\Update\V20\Version205',
|
2020-03-15 01:45:26 +03:00
|
|
|
'App\Listeners\Update\V20\Version207',
|
2020-03-26 12:04:33 +03:00
|
|
|
'App\Listeners\Update\V20\Version208',
|
2020-04-19 18:08:44 +03:00
|
|
|
'App\Listeners\Update\V20\Version209',
|
2020-06-09 00:40:08 +03:00
|
|
|
'App\Listeners\Update\V20\Version2014',
|
2020-07-21 00:01:26 +03:00
|
|
|
'App\Listeners\Update\V20\Version2017',
|
2019-11-16 10:21:14 +03:00
|
|
|
],
|
|
|
|
'Illuminate\Auth\Events\Login' => [
|
|
|
|
'App\Listeners\Auth\Login',
|
|
|
|
],
|
|
|
|
'Illuminate\Auth\Events\Logout' => [
|
|
|
|
'App\Listeners\Auth\Logout',
|
|
|
|
],
|
2019-12-31 15:49:09 +03:00
|
|
|
'App\Events\Purchase\BillCreated' => [
|
|
|
|
'App\Listeners\Purchase\CreateBillCreatedHistory',
|
2020-03-05 17:22:07 +03:00
|
|
|
'App\Listeners\Purchase\IncreaseNextBillNumber',
|
2019-11-16 10:21:14 +03:00
|
|
|
],
|
2020-01-23 17:57:28 +03:00
|
|
|
'App\Events\Purchase\BillReceived' => [
|
|
|
|
'App\Listeners\Purchase\MarkBillReceived',
|
|
|
|
],
|
2020-03-28 17:54:36 +03:00
|
|
|
'App\Events\Purchase\BillCancelled' => [
|
|
|
|
'App\Listeners\Purchase\MarkBillCancelled',
|
|
|
|
],
|
2019-12-31 15:49:09 +03:00
|
|
|
'App\Events\Purchase\BillRecurring' => [
|
|
|
|
'App\Listeners\Purchase\SendBillRecurringNotification',
|
2019-11-16 10:21:14 +03:00
|
|
|
],
|
2020-04-15 21:16:17 +03:00
|
|
|
'App\Events\Purchase\BillReminded' => [
|
2020-04-15 19:41:01 +03:00
|
|
|
'App\Listeners\Purchase\SendBillReminderNotification',
|
2020-04-15 11:27:58 +03:00
|
|
|
],
|
2019-12-31 15:49:09 +03:00
|
|
|
'App\Events\Sale\PaymentReceived' => [
|
|
|
|
'App\Listeners\Sale\CreateInvoiceTransaction',
|
|
|
|
'App\Listeners\Sale\SendInvoicePaymentNotification',
|
2019-11-16 10:21:14 +03:00
|
|
|
],
|
2019-12-31 15:49:09 +03:00
|
|
|
'App\Events\Sale\InvoiceCreated' => [
|
|
|
|
'App\Listeners\Sale\CreateInvoiceCreatedHistory',
|
|
|
|
'App\Listeners\Sale\IncreaseNextInvoiceNumber',
|
2019-11-16 10:21:14 +03:00
|
|
|
],
|
2019-12-31 15:49:09 +03:00
|
|
|
'App\Events\Sale\InvoiceSent' => [
|
|
|
|
'App\Listeners\Sale\MarkInvoiceSent',
|
2019-11-16 10:21:14 +03:00
|
|
|
],
|
2020-03-28 17:54:36 +03:00
|
|
|
'App\Events\Sale\InvoiceCancelled' => [
|
|
|
|
'App\Listeners\Sale\MarkInvoiceCancelled',
|
|
|
|
],
|
2019-12-31 15:49:09 +03:00
|
|
|
'App\Events\Sale\InvoiceViewed' => [
|
|
|
|
'App\Listeners\Sale\MarkInvoiceViewed',
|
2019-11-16 10:21:14 +03:00
|
|
|
],
|
2019-12-31 15:49:09 +03:00
|
|
|
'App\Events\Sale\InvoiceRecurring' => [
|
|
|
|
'App\Listeners\Sale\SendInvoiceRecurringNotification',
|
2019-11-16 10:21:14 +03:00
|
|
|
],
|
2020-04-15 21:16:17 +03:00
|
|
|
'App\Events\Sale\InvoiceReminded' => [
|
2020-04-15 19:41:01 +03:00
|
|
|
'App\Listeners\Sale\SendInvoiceReminderNotification',
|
2020-04-15 11:27:58 +03:00
|
|
|
],
|
2019-11-30 01:35:28 +03:00
|
|
|
'App\Events\Menu\AdminCreated' => [
|
|
|
|
'App\Listeners\Menu\AddAdminItems',
|
|
|
|
],
|
|
|
|
'App\Events\Menu\PortalCreated' => [
|
|
|
|
'App\Listeners\Menu\AddPortalItems',
|
|
|
|
],
|
2020-06-11 23:32:13 +03:00
|
|
|
'App\Events\Module\Installed' => [
|
|
|
|
'App\Listeners\Module\FinishInstallation',
|
|
|
|
],
|
2019-11-16 10:21:14 +03:00
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The subscriber classes to register.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $subscribe = [
|
2020-06-11 23:32:13 +03:00
|
|
|
'App\Listeners\Module\ClearCache',
|
2020-01-31 12:59:12 +03:00
|
|
|
'App\Listeners\Report\AddDate',
|
|
|
|
'App\Listeners\Report\AddAccounts',
|
|
|
|
'App\Listeners\Report\AddCustomers',
|
|
|
|
'App\Listeners\Report\AddVendors',
|
|
|
|
'App\Listeners\Report\AddExpenseCategories',
|
|
|
|
'App\Listeners\Report\AddIncomeCategories',
|
|
|
|
'App\Listeners\Report\AddIncomeExpenseCategories',
|
|
|
|
'App\Listeners\Report\AddSearch',
|
|
|
|
'App\Listeners\Report\AddRowsToTax',
|
2019-11-16 10:21:14 +03:00
|
|
|
];
|
|
|
|
}
|