Some basic cleaning up.

This commit is contained in:
Sander Dorigo
2014-07-04 11:39:21 +02:00
parent 6bdaafbf72
commit c3254c2351
6 changed files with 95 additions and 36 deletions

View File

@@ -2,7 +2,8 @@
//use Firefly\Storage\Account\AccountRepositoryInterface as ARI;
class AccountController extends \BaseController {
class AccountController extends \BaseController
{
// public function __construct(ARI $accounts) {
// $this->accounts = $accounts;
@@ -19,18 +20,15 @@ class AccountController extends \BaseController {
// }
//
//
// /**
// * Show the form for creating a new resource.
// *
// * @return Response
// */
// public function create()
// {
// if($this->accounts->count() == 0) {
// return View::make('accounts.create-first-time');
// }
// return View::make('accounts');
// }
/**
* Show the form for creating a new resource.
*
* @return Response
*/
public function create()
{
return View::make('accounts.create');
}
//
//
// /**

View File

@@ -13,4 +13,4 @@ class HomeController extends BaseController {
$count = $this->accounts->count();
return View::make('index')->with('count',$count);
}
}
}

View File

@@ -30,6 +30,8 @@ class MigrationController extends BaseController
if (!$this->migration->validFile()) {
return View::make('error')->with('message', 'Invalid JSON content.');
}
$this->migration->migrate();
return 'busy!';
}
// then, start migrating!