mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-22 20:16:22 +00:00
New code, building a migration routine.
This commit is contained in:
@@ -1,11 +1,25 @@
|
||||
<?php
|
||||
|
||||
use Firefly\Storage\Account\AccountRepositoryInterface as ARI;
|
||||
|
||||
class HomeController extends BaseController {
|
||||
|
||||
public function __construct(ARI $accounts) {
|
||||
$this->accounts = $accounts;
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
|
||||
$count = $this->accounts->count();
|
||||
if($count == 0) {
|
||||
return Redirect::route('start');
|
||||
}
|
||||
return View::make('index');
|
||||
}
|
||||
|
||||
public function start() {
|
||||
return View::make('start');
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user