getUser(); $user = (new UserRepository())->getByLogin($auth_user['login']); if (!$user) { throw HTTPException::factory(404); } $transactions = (new TransactionRepository())->getRecentForUser($user->id, 50); return $this->render('index', [ 'user' => $auth_user, 'transactions' => $transactions, ]); } }