mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-18 23:50:09 +00:00
Some basic cleaning up.
This commit is contained in:
@@ -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');
|
||||
}
|
||||
//
|
||||
//
|
||||
// /**
|
||||
|
||||
@@ -13,4 +13,4 @@ class HomeController extends BaseController {
|
||||
$count = $this->accounts->count();
|
||||
return View::make('index')->with('count',$count);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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!
|
||||
|
||||
Reference in New Issue
Block a user