Time-based navigation and some feedback for the user as to his import.

This commit is contained in:
James Cole
2014-09-14 21:09:52 +02:00
parent 49b8742082
commit 4f3493f9ff
8 changed files with 277 additions and 12 deletions

View File

@@ -30,6 +30,33 @@ class HomeController extends BaseController
$this->_reminders = $reminders;
}
public function jobDev() {
$fullName = storage_path().DIRECTORY_SEPARATOR.'firefly-export-2014-07-23.json';
\Log::notice('Pushed start job.');
Queue::push('Firefly\Queue\Import@start', ['file' => $fullName, 'user' => 1]);
}
/*
*
*/
public function sessionPrev() {
/** @var \Firefly\Helper\Toolkit\ToolkitInterface $toolkit */
$toolkit = App::make('Firefly\Helper\Toolkit\ToolkitInterface');
$toolkit->prev();
return Redirect::route('index');
}
/*
*
*/
public function sessionNext() {
/** @var \Firefly\Helper\Toolkit\ToolkitInterface $toolkit */
$toolkit = App::make('Firefly\Helper\Toolkit\ToolkitInterface');
$toolkit->next();
return Redirect::route('index');
}
/**
* @return \Illuminate\Http\RedirectResponse
*/