-
-
Notifications
You must be signed in to change notification settings - Fork 438
Closed
Description
The recent #1445 introduced a bug (as raised here)
This check should be done only if the user answer "YES" to the question.
if (
!$input->getOption('broadcast')
&& class_exists(Broadcast::class)
&& !class_exists($this->generator->createClassNameDetails($entityClassName, 'Entity\\')->getFullName())
) {
// Mercure is needed
if (!class_exists(MercureExtension::class)) {
throw new RuntimeCommandException('Please run "composer require symfony/mercure". It is needed to broadcast entities.');
}
$description = $command->getDefinition()->getOption('broadcast')->getDescription();
$question = new ConfirmationQuestion($description, false);
$isBroadcast = $io->askQuestion($question);
$input->setOption('broadcast', $isBroadcast);
}Metadata
Metadata
Assignees
Labels
No labels