Files
firefly-iii/app/Providers/EventServiceProvider.php

59 lines
2.6 KiB
PHP
Raw Permalink Normal View History

<?php
/**
* EventServiceProvider.php
2020-02-16 13:55:52 +01:00
* Copyright (c) 2019 james@firefly-iii.org
*
* This file is part of Firefly III (https://github.com/firefly-iii).
*
* 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
*
* 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
* GNU Affero General Public License for more details.
2017-10-21 08:40:00 +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/>.
*/
declare(strict_types=1);
namespace FireflyIII\Providers;
2015-02-06 04:39:52 +01:00
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
use Override;
2015-04-07 18:26:14 +02: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")
*/
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
*/
#[Override]
public function boot(): void {}
2015-02-06 04:39:52 +01:00
}