Simply log presence.

This commit is contained in:
James Cole 2016-01-13 05:37:25 +01:00
parent 09f826ceba
commit 670ab059d1
2 changed files with 13 additions and 9 deletions

View File

@ -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!');
}
}

View File

@ -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!');
}
}