Skip to content

Commit 1523648

Browse files
Jeroen de Graafjerowork
authored andcommitted
Config custom command bus
1 parent e5b949a commit 1523648

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/GemberEventSourcingBundle.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,13 @@ public function loadExtension(array $config, ContainerConfigurator $container, C
173173
);
174174
}
175175

176+
if (!empty($config['message_bus']['symfony']['command_bus'] ?? null)) {
177+
$services->alias(
178+
'gember.symfony.component.messenger.message_bus.command_bus',
179+
ltrim($config['message_bus']['symfony']['command_bus'], '@'),
180+
);
181+
}
182+
176183
if (!empty($config['event_store']['rdbms']['doctrine_dbal']['connection'] ?? null)) {
177184
$services->alias(
178185
'gember.doctrine.dbal.connection',

0 commit comments

Comments
 (0)