2014-06-28 02:41:44 -05:00
|
|
|
<?php
|
2014-07-03 14:31:32 -05:00
|
|
|
use Carbon\Carbon as Carbon;
|
2014-06-30 00:26:38 -05:00
|
|
|
use Firefly\Storage\Account\AccountRepositoryInterface as ARI;
|
|
|
|
|
2014-06-28 02:41:44 -05:00
|
|
|
class HomeController extends BaseController {
|
|
|
|
|
2014-06-30 00:26:38 -05:00
|
|
|
public function __construct(ARI $accounts) {
|
|
|
|
$this->accounts = $accounts;
|
|
|
|
}
|
|
|
|
|
2014-06-28 02:57:17 -05:00
|
|
|
public function index()
|
2014-06-28 02:41:44 -05:00
|
|
|
{
|
2014-07-03 14:31:32 -05:00
|
|
|
$count = $this->accounts->count();
|
|
|
|
return View::make('index')->with('count',$count);
|
2014-06-28 02:41:44 -05:00
|
|
|
}
|
|
|
|
}
|