mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 18:54:58 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			473 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			473 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?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');
 | |
|     }
 | |
| 
 | |
| }
 |