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