firefly-iii/app/Handlers/Events/FireRulesForStore.php

58 lines
1.2 KiB
PHP
Raw Normal View History

2016-01-12 14:38:12 -06:00
<?php
/**
* FireRulesForStore.php
* Copyright (C) 2016 Sander Dorigo
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
namespace FireflyIII\Handlers\Events;
use FireflyIII\Events\TransactionJournalStored;
use FireflyIII\Models\RuleGroup;
use FireflyIII\User;
use Illuminate\Support\Facades\Auth;
2016-01-12 22:37:25 -06:00
use Log;
2016-01-12 14:38:12 -06:00
/**
* Class FireRulesForStore
*
* @package FireflyIII\Handlers\Events
*/
class FireRulesForStore
{
/**
* Create the event handler.
*
* @codeCoverageIgnore
*
*/
public function __construct()
{
//
}
/**
* Connect a new transaction journal to any related piggy banks.
*
* @param TransactionJournalStored $event
*
* @return boolean
*/
public function handle(TransactionJournalStored $event)
{
// get all the user's rule groups, with the rules, order by 'order'.
2016-01-12 22:37:25 -06:00
// /** @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!');
2016-01-12 14:38:12 -06:00
}
}