From 886e582d44628c7dee02a9c5c861d0fbf9c4a503 Mon Sep 17 00:00:00 2001 From: DutchAndDangerous Date: Tue, 27 Jun 2023 17:57:57 +0200 Subject: [PATCH] Exception changed to a warning. --- src/Maker/MakeEntity.php | 2 +- src/Maker/MakeResetPassword.php | 2 +- src/Maker/MakeUser.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Maker/MakeEntity.php b/src/Maker/MakeEntity.php index 36f7a74dc..883fc116d 100644 --- a/src/Maker/MakeEntity.php +++ b/src/Maker/MakeEntity.php @@ -163,7 +163,7 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen { if ($input->getOption('uuid_id')) { if (!class_exists('Symfony\Component\Uid\Uuid')) { - throw new \Exception('The symfony/uid package is not installed'); + $io->warning('The symfony/uid package is not installed'); } } diff --git a/src/Maker/MakeResetPassword.php b/src/Maker/MakeResetPassword.php index de4972658..d6f3dc12e 100644 --- a/src/Maker/MakeResetPassword.php +++ b/src/Maker/MakeResetPassword.php @@ -186,7 +186,7 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen { if ($input->getOption('uuid_id')) { if (!class_exists('Symfony\Component\Uid\Uuid')) { - throw new \Exception('The symfony/uid package is not installed'); + $io->warning('The symfony/uid package is not installed'); } } diff --git a/src/Maker/MakeUser.php b/src/Maker/MakeUser.php index 013599fc5..23d9fa582 100644 --- a/src/Maker/MakeUser.php +++ b/src/Maker/MakeUser.php @@ -117,7 +117,7 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen { if ($input->getOption('uuid_id')) { if (!class_exists('Symfony\Component\Uid\Uuid')) { - throw new \Exception('The symfony/uid package is not installed'); + $io->warning('The symfony/uid package is not installed'); } }