Files
firefly-iii/app/Handlers/Events/ScanForBillsAfterUpdate.php

47 lines
918 B
PHP
Raw Normal View History

2016-01-13 07:16:29 +01:00
<?php
/**
* ScanForBillsAfterUpdate.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\TransactionJournalUpdated;
2016-01-29 07:29:21 +01:00
use FireflyIII\Support\Events\BillScanner;
2016-01-13 07:16:29 +01:00
/**
* Class RescanJournal
*
* @codeCoverageIgnore
* @package FireflyIII\Handlers\Events
*/
class ScanForBillsAfterUpdate
{
/**
* Create the event handler.
*
*/
public function __construct()
{
//
}
/**
* Scan a transaction journal for possibly related bills after it has been updated.
*
* @param TransactionJournalUpdated $event
*
* @return void
*/
public function handle(TransactionJournalUpdated $event)
{
$journal = $event->journal;
2016-01-29 07:29:21 +01:00
BillScanner::scan($journal);
2016-01-13 07:16:29 +01:00
}
}