Create a fake routine, check for its progress.

This commit is contained in:
James Cole
2018-04-30 06:37:29 +02:00
parent 1c2089b8a3
commit cd75224cdd
9 changed files with 207 additions and 6 deletions

View File

@@ -0,0 +1,44 @@
<?php
/**
* StageNewHandler.php
* Copyright (c) 2018 thegrumpydictator@gmail.com
*
* This file is part of Firefly III.
*
* Firefly III is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Firefly III 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace FireflyIII\Support\Import\Routine\Fake;
use Log;
/**
* Class StageNewHandler
*/
class StageNewHandler
{
/**
*
*/
public function run(): void
{
for ($i = 0; $i < 15; $i++) {
Log::debug(sprintf('Am now in stage new hander, sleeping... (%d)', $i));
sleep(1);
}
}
}