2016-01-08 16:00:07 +01:00
|
|
|
<?php
|
2022-12-11 10:29:01 +01:00
|
|
|
|
2016-05-20 12:41:23 +02:00
|
|
|
/**
|
|
|
|
|
* EventServiceProvider.php
|
2020-02-16 13:55:52 +01:00
|
|
|
* Copyright (c) 2019 james@firefly-iii.org
|
2016-05-20 12:41:23 +02:00
|
|
|
*
|
2019-10-02 06:37:26 +02:00
|
|
|
* This file is part of Firefly III (https://github.com/firefly-iii).
|
2016-10-05 06:52:15 +02:00
|
|
|
*
|
2019-10-02 06:37:26 +02:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU Affero General Public License as
|
|
|
|
|
* published by the Free Software Foundation, either version 3 of the
|
|
|
|
|
* License, or (at your option) any later version.
|
2017-10-21 08:40:00 +02:00
|
|
|
*
|
2019-10-02 06:37:26 +02:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
2017-10-21 08:40:00 +02:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2019-10-02 06:37:26 +02:00
|
|
|
* GNU Affero General Public License for more details.
|
2017-10-21 08:40:00 +02:00
|
|
|
*
|
2019-10-02 06:37:26 +02:00
|
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2016-05-20 12:41:23 +02:00
|
|
|
*/
|
2017-04-09 07:44:22 +02:00
|
|
|
declare(strict_types=1);
|
2016-01-08 16:00:07 +01:00
|
|
|
|
|
|
|
|
namespace FireflyIII\Providers;
|
2015-02-06 04:39:52 +01:00
|
|
|
|
|
|
|
|
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
2025-05-27 16:57:36 +02:00
|
|
|
use Override;
|
2015-04-07 18:26:14 +02:00
|
|
|
|
2016-01-09 08:20:55 +01:00
|
|
|
/**
|
2017-11-15 12:25:49 +01:00
|
|
|
* Class EventServiceProvider.
|
2023-12-22 20:12:38 +01:00
|
|
|
*
|
2025-01-03 18:16:27 +01:00
|
|
|
* @SuppressWarnings("PHPMD.CouplingBetweenObjects")
|
2016-01-09 08:20:55 +01:00
|
|
|
*/
|
2015-02-11 07:35:10 +01:00
|
|
|
class EventServiceProvider extends ServiceProvider
|
|
|
|
|
{
|
2026-01-31 10:34:26 +01:00
|
|
|
protected $listen
|
|
|
|
|
= [
|
|
|
|
|
// is a Transaction Journal related event.
|
|
|
|
|
// StoredTransactionGroup::class => ['FireflyIII\Handlers\Events\StoredGroupEventHandler@runAllHandlers'],
|
|
|
|
|
// TriggeredStoredTransactionGroup::class => ['FireflyIII\Handlers\Events\StoredGroupEventHandler@triggerRulesManually'],
|
|
|
|
|
// is a Transaction Journal related event.
|
|
|
|
|
// UpdatedTransactionGroup::class => ['FireflyIII\Handlers\Events\UpdatedGroupEventHandler@runAllHandlers'],
|
|
|
|
|
// DestroyedTransactionGroup::class => ['FireflyIII\Handlers\Events\DestroyedGroupEventHandler@runAllHandlers'],
|
|
|
|
|
// API related events:
|
|
|
|
|
// AccessTokenCreated::class => ['FireflyIII\Handlers\Events\APIEventHandler@accessTokenCreated'],
|
|
|
|
|
// account related events:
|
|
|
|
|
// StoredAccount::class => ['FireflyIII\Handlers\Events\StoredAccountEventHandler@recalculateCredit'],
|
|
|
|
|
// UpdatedAccount::class => ['FireflyIII\Handlers\Events\UpdatedAccountEventHandler@recalculateCredit'],
|
|
|
|
|
// preferences
|
|
|
|
|
// UserGroupChangedPrimaryCurrency::class => ['FireflyIII\Handlers\Events\PreferencesEventHandler@resetPrimaryCurrencyAmounts'],
|
|
|
|
|
];
|
2015-02-06 04:39:52 +01:00
|
|
|
|
2015-02-11 07:35:10 +01:00
|
|
|
/**
|
2016-09-16 07:05:34 +02:00
|
|
|
* Register any events for your application.
|
2015-02-11 07:35:10 +01:00
|
|
|
*/
|
2025-05-27 16:57:36 +02:00
|
|
|
#[Override]
|
2026-01-23 15:14:29 +01:00
|
|
|
public function boot(): void {}
|
2015-02-06 04:39:52 +01:00
|
|
|
}
|