mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
26 lines
473 B
PHP
26 lines
473 B
PHP
<?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');
|
|
}
|
|
|
|
}
|