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