New code, building a migration routine.

This commit is contained in:
James Cole
2014-06-30 07:26:38 +02:00
parent 5d430e7dad
commit ecadf005a8
23 changed files with 338 additions and 15 deletions

View File

@@ -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');
}
}