Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
New events for new accounts
James Cole30aea37391b9
diff --git a/app/Events/StoredAccount.php b/app/Events/StoredAccount.phpnew file mode 100644index 0000000000..a5c948d5d3--- /dev/null+++ b/app/Events/StoredAccount.php@@ -0,0 +1,46 @@+<?php+/*+ * StoredAccount.php+ * Copyright (c) 2021 [email protected]+ *+ * 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.+ *+ * This program is distributed in the hope that it will be useful,+ * 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.+ *+ * 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/>.+ */++namespace FireflyIII\Events;++use FireflyIII\Models\Account;+use Illuminate\Queue\SerializesModels;++/**+ * Class StoredAccount+ */+class StoredAccount extends Event+{+ use SerializesModels;++ public Account $account;++ /**+ * Create a new event instance.+ *+ * @param Account $account+ */+ public function __construct(Account $account)+ {+ $this->account = $account;+ }++}\ No newline at end of filediff --git a/app/Events/UpdatedAccount.php b/app/Events/UpdatedAccount.phpnew file mode 100644index 0000000000..1c01b8cf00--- /dev/null+++ b/app/Events/UpdatedAccount.php@@ -0,0 +1,46 @@+<?php+/*+ * StoredAccount.php+ * Copyright (c) 2021 [email protected]+ *+ * 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.+ *+ * This program is distributed in the hope that it will be useful,+ * 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.+ *+ * 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/>.+ */++namespace FireflyIII\Events;++use FireflyIII\Models\Account;+use Illuminate\Queue\SerializesModels;++/**+ * Class UpdatedAccount+ */+class UpdatedAccount extends Event+{+ use SerializesModels;++ public Account $account;++ /**+ * Create a new event instance.+ *+ * @param Account $account+ */+ public function __construct(Account $account)+ {+ $this->account = $account;+ }++}\ No newline at end of file