Skip to content

Commit

Permalink
Exception changed to a warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
Coffee2CodeNL committed Jun 27, 2023
1 parent feab81d commit 886e582
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Maker/MakeEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Maker/MakeResetPassword.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Maker/MakeUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}

Expand Down

0 comments on commit 886e582

Please sign in to comment.