You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!interface_exists(MessageBusInterface::class)) {
1494
-
thrownewLogicException('Messenger support cannot be enabled as the Messenger component is not installed.');
1495
+
thrownewLogicException('Messenger support cannot be enabled as the Messenger component is not installed. Try running "composer require symfony/messenger".');
1495
1496
}
1496
1497
1497
1498
$loader->load('messenger.xml');
@@ -1502,7 +1503,7 @@ private function registerMessengerConfiguration(array $config, ContainerBuilder
1502
1503
} else {
1503
1504
if ('messenger.transport.symfony_serializer' === $config['serializer']['id']) {
1504
1505
if (!$this->isConfigEnabled($container, $serializerConfig)) {
1505
-
thrownewLogicException('The default Messenger serializer cannot be enabled as the Serializer support is not available. Try enable it or install it by running "composer require symfony/serializer-pack".');
1506
+
thrownewLogicException('The default Messenger serializer cannot be enabled as the Serializer support is not available. Try enabling it or running "composer require symfony/serializer-pack".');
@@ -1517,17 +1518,13 @@ private function registerMessengerConfiguration(array $config, ContainerBuilder
1517
1518
}
1518
1519
}
1519
1520
1520
-
if (null === $config['default_bus']) {
1521
-
if (\count($config['buses']) > 1) {
1522
-
thrownewLogicException(sprintf('You need to define a default bus with the "default_bus" configuration. Possible values: %s', implode(', ', array_keys($config['buses']))));
1523
-
}
1524
-
1521
+
if (null === $config['default_bus'] && 1 === \count($config['buses'])) {
if (0 === strpos($transport['dsn'], 'amqp://') && !$container->hasDefinition('messenger.transport.amqp.factory')) {
1572
-
thrownewLogicException('The default AMQP transport is not available. Make sure you have installed and enabled the Serializer component. Try enable it or install it by running "composer require symfony/serializer-pack".');
1565
+
thrownewLogicException('The default AMQP transport is not available. Make sure you have installed and enabled the Serializer component. Try enabling it or running "composer require symfony/serializer-pack".');
if ('*' !== $message && !class_exists($message) && !interface_exists($message, false)) {
1589
-
thrownewLogicException(sprintf('Messenger routing configuration contains a mistake: message "%s" does not exist. It needs to match an existing class or interface.', $message));
1581
+
thrownewLogicException(sprintf('Invalid Messenger routing configuration: class or interface "%s" not found.', $message));
1590
1582
}
1583
+
$senders = array_map(function ($sender) use ($senderAliases) {
* @expectedExceptionMessage The default Messenger serializer cannot be enabled as the Serializer support is not available. Try enable it or install it by running "composer require symfony/serializer-pack".
578
+
* @expectedExceptionMessage The default Messenger serializer cannot be enabled as the Serializer support is not available. Try enabling it or running "composer require symfony/serializer-pack".
* @expectedExceptionMessage The default AMQP transport is not available. Make sure you have installed and enabled the Serializer component. Try enable it or install it by running "composer require symfony/serializer-pack".
587
+
* @expectedExceptionMessage The default AMQP transport is not available. Make sure you have installed and enabled the Serializer component. Try enabling it or running "composer require symfony/serializer-pack".
0 commit comments