akaunting/app/Providers/Event.php

137 lines
5.1 KiB
PHP
Raw Normal View History

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',
2021-02-02 18:35:42 +03:00
'App\Listeners\Module\UpdateExtraModules',
2022-06-01 10:15:55 +03:00
'App\Listeners\Update\V30\Version300',
'App\Listeners\Update\V30\Version303',
2022-06-28 21:44:19 +03:00
'App\Listeners\Update\V30\Version304',
'App\Listeners\Update\V30\Version305',
2022-10-11 09:26:20 +03:00
'App\Listeners\Update\V30\Version307',
2022-11-03 11:51:38 +03:00
'App\Listeners\Update\V30\Version309',
2023-03-03 10:27:39 +03:00
'App\Listeners\Update\V30\Version3013',
2023-04-25 10:50:17 +03:00
'App\Listeners\Update\V30\Version3014',
2019-11-16 10:21:14 +03:00
],
'Illuminate\Auth\Events\Login' => [
'App\Listeners\Auth\Login',
],
'Illuminate\Auth\Events\Logout' => [
'App\Listeners\Auth\Logout',
],
2022-04-25 15:04:04 +03:00
//'Illuminate\Console\Events\ScheduledTaskStarting' => [
'Illuminate\Console\Events\CommandStarting' => [
'App\Listeners\Common\SkipScheduleInReadOnlyMode',
],
2020-07-26 19:47:23 +03:00
'App\Events\Auth\LandingPageShowing' => [
'App\Listeners\Auth\AddLandingPages',
],
2020-12-24 01:28:38 +03:00
'App\Events\Document\DocumentCreated' => [
'App\Listeners\Document\CreateDocumentCreatedHistory',
'App\Listeners\Document\IncreaseNextDocumentNumber',
2021-01-10 17:16:47 +03:00
'App\Listeners\Document\SettingFieldCreated',
2019-11-16 10:21:14 +03:00
],
2020-12-24 01:28:38 +03:00
'App\Events\Document\DocumentReceived' => [
'App\Listeners\Document\MarkDocumentReceived',
2020-01-23 17:57:28 +03:00
],
2020-12-24 01:28:38 +03:00
'App\Events\Document\DocumentCancelled' => [
'App\Listeners\Document\MarkDocumentCancelled',
2020-03-28 17:54:36 +03:00
],
2020-12-24 01:28:38 +03:00
'App\Events\Document\DocumentRecurring' => [
'App\Listeners\Document\SendDocumentRecurringNotification',
2019-11-16 10:21:14 +03:00
],
2020-12-24 01:28:38 +03:00
'App\Events\Document\DocumentReminded' => [
'App\Listeners\Document\SendDocumentReminderNotification',
],
2020-12-24 01:28:38 +03:00
'App\Events\Document\PaymentReceived' => [
'App\Listeners\Document\CreateDocumentTransaction',
'App\Listeners\Document\SendDocumentPaymentNotification',
2019-11-16 10:21:14 +03:00
],
2022-06-14 01:18:34 +03:00
'App\Events\Document\DocumentMarkedSent' => [
'App\Listeners\Document\MarkDocumentSent',
],
2020-12-24 01:28:38 +03:00
'App\Events\Document\DocumentSent' => [
'App\Listeners\Document\MarkDocumentSent',
2019-11-16 10:21:14 +03:00
],
2021-01-10 17:16:47 +03:00
'App\Events\Document\DocumentUpdated' => [
'App\Listeners\Document\SettingFieldUpdated',
],
2020-12-24 01:28:38 +03:00
'App\Events\Document\DocumentViewed' => [
'App\Listeners\Document\MarkDocumentViewed',
2022-06-01 10:15:55 +03:00
'App\Listeners\Document\SendDocumentViewNotification',
],
2021-03-12 17:24:03 +03:00
'App\Events\Install\UpdateFailed' => [
'App\Listeners\Update\SendNotificationOnFailure',
],
2022-06-01 10:15:55 +03:00
'App\Events\Menu\NotificationsCreated' => [
'App\Listeners\Menu\ShowInNotifications',
],
2019-11-30 01:35:28 +03:00
'App\Events\Menu\AdminCreated' => [
2022-06-01 10:15:55 +03:00
'App\Listeners\Menu\ShowInAdmin',
],
'App\Events\Menu\ProfileCreated' => [
'App\Listeners\Menu\ShowInProfile',
],
'App\Events\Menu\SettingsCreated' => [
'App\Listeners\Menu\ShowInSettings',
],
'App\Events\Menu\NewwCreated' => [
'App\Listeners\Menu\ShowInNeww',
2019-11-30 01:35:28 +03:00
],
'App\Events\Menu\PortalCreated' => [
2022-06-01 10:15:55 +03:00
'App\Listeners\Menu\ShowInPortal',
2019-11-30 01:35:28 +03:00
],
2020-06-11 23:32:13 +03:00
'App\Events\Module\Installed' => [
'App\Listeners\Module\InstallExtraModules',
2020-06-11 23:32:13 +03:00
'App\Listeners\Module\FinishInstallation',
],
'App\Events\Module\Uninstalled' => [
'App\Listeners\Module\FinishUninstallation',
],
2022-06-01 10:15:55 +03:00
'App\Events\Banking\TransactionCreated' => [
'App\Listeners\Banking\IncreaseNextTransactionNumber',
],
'App\Events\Setting\CategoryDeleted' => [
'App\Listeners\Setting\DeleteCategoryDeletedSubCategories',
],
'App\Events\Email\TooManyEmailsSent' => [
'App\Listeners\Email\ReportTooManyEmailsSent',
'App\Listeners\Email\TellFirewallTooManyEmailsSent',
],
2023-04-24 11:02:45 +03:00
'App\Events\Email\InvalidEmailDetected' => [
'App\Listeners\Email\DisablePersonDueToInvalidEmail',
'App\Listeners\Email\SendInvalidEmailNotification',
],
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',
2021-01-24 22:51:01 +03:00
'App\Listeners\Report\AddSearchString',
2020-01-31 12:59:12 +03:00
'App\Listeners\Report\AddRowsToTax',
2021-09-20 10:06:55 +03:00
'App\Listeners\Report\AddBasis',
2019-11-16 10:21:14 +03:00
];
}