userRepository->makeAdmin($email); } catch (\InvalidArgumentException) { $io->error('User not found'); return Command::FAILURE; } return Command::SUCCESS; } }