From 670ab059d18cd55a24a1f4485a71a9c8b6db557d Mon Sep 17 00:00:00 2001 From: James Cole Date: Wed, 13 Jan 2016 05:37:25 +0100 Subject: [PATCH] Simply log presence. --- app/Handlers/Events/FireRulesForStore.php | 20 +++++++++++--------- app/Handlers/Events/FireRulesForUpdate.php | 2 ++ 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/app/Handlers/Events/FireRulesForStore.php b/app/Handlers/Events/FireRulesForStore.php index 64b91a9ea3..b68c61157b 100644 --- a/app/Handlers/Events/FireRulesForStore.php +++ b/app/Handlers/Events/FireRulesForStore.php @@ -14,6 +14,7 @@ use FireflyIII\Events\TransactionJournalStored; use FireflyIII\Models\RuleGroup; use FireflyIII\User; use Illuminate\Support\Facades\Auth; +use Log; /** * Class FireRulesForStore @@ -43,14 +44,15 @@ class FireRulesForStore public function handle(TransactionJournalStored $event) { // get all the user's rule groups, with the rules, order by 'order'. - /** @var User $user */ - $user = Auth::user(); - - $groups = $user->ruleGroups()->with('rules')->orderBy('order','ASC')->get(); - - /** @var RuleGroup $group */ - foreach($groups as $group) { - - } +// /** @var User $user */ +// $user = Auth::user(); +// +// $groups = $user->ruleGroups()->with('rules')->orderBy('order','ASC')->get(); +// +// /** @var RuleGroup $group */ +// foreach($groups as $group) { +// +// } + Log::debug('FireRulesForStore!'); } } \ No newline at end of file diff --git a/app/Handlers/Events/FireRulesForUpdate.php b/app/Handlers/Events/FireRulesForUpdate.php index fc2da15d20..d0b36c45dd 100644 --- a/app/Handlers/Events/FireRulesForUpdate.php +++ b/app/Handlers/Events/FireRulesForUpdate.php @@ -9,6 +9,7 @@ namespace FireflyIII\Handlers\Events; use FireflyIII\Events\TransactionJournalUpdated; +use Log; /** * Class FireRulesForUpdate @@ -35,6 +36,7 @@ class FireRulesForUpdate */ public function handle(TransactionJournalUpdated $event) { + Log::debug('Fire rules for update!'); } } \ No newline at end of file