Update Symfony bundles

This commit is contained in:
Benjamin Dalsass
2022-07-26 08:09:13 +02:00
committed by bdalsass
parent 31cc294cc3
commit 25a612da04
30 changed files with 456 additions and 350 deletions

View File

@@ -67,7 +67,7 @@ class AddConsoleCommandPass implements CompilerPassInterface
if (!$r->isSubclassOf(Command::class)) {
throw new InvalidArgumentException(sprintf('The service "%s" tagged "%s" must be a subclass of "%s".', $id, $this->commandTag, Command::class));
}
$aliases = $class::getDefaultName();
$aliases = str_replace('%', '%%', $class::getDefaultName() ?? '');
}
$aliases = explode('|', $aliases ?? '');
@@ -124,7 +124,7 @@ class AddConsoleCommandPass implements CompilerPassInterface
if (!$r->isSubclassOf(Command::class)) {
throw new InvalidArgumentException(sprintf('The service "%s" tagged "%s" must be a subclass of "%s".', $id, $this->commandTag, Command::class));
}
$description = $class::getDefaultDescription();
$description = str_replace('%', '%%', $class::getDefaultDescription() ?? '');
}
if ($description) {