8000 Exception changed to a warning. · symfony/maker-bundle@886e582 · GitHub
[go: up one dir, main page]

Skip to content

Commit 886e582

Browse files
committed
Exception changed to a warning.
1 parent feab81d commit 886e582

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Maker/MakeEntity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen
163163
{
164164
if ($input->getOption('uuid_id')) {
165165
if (!class_exists('Symfony\Component\Uid\Uuid')) {
166-
throw new \Exception('The symfony/uid package is not installed');
166+
$io->warning('The symfony/uid package is not installed');
167167
}
168168
}
169169

src/Maker/MakeResetPassword.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen
186186
{
187187
if ($input->getOption('uuid_id')) {
188188
if (!class_exists('Symfony\Component\Uid\Uuid')) {
189-
throw new \Exception('The symfony/uid package is not installed');
189+
$io->warning('The symfony/uid package is not installed');
190190
}
191191
}
192192

src/Maker/MakeUser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen
117117
{
118118
if ($input->getOption('uuid_id')) {
119119
if (!class_exists('Symfony\Component\Uid\Uuid')) {
120-
throw new \Exception('The symfony/uid package is not installed');
120+
$io->warning('The symfony/uid package is not installed');
121121
}
122122
}
123123

0 commit comments

Comments
 (0)
0