Skip to content

Commit fc9defb

Browse files
committed
CR fixess
1 parent 04d9e9c commit fc9defb

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

DependencyInjection/Configuration.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ private function getAsyncCommandsConfiguration(): ArrayNodeDefinition
7676
->children()
7777
->booleanNode('enabled')->defaultFalse()->end()
7878
->integerNode('timeout')->min(0)->defaultValue(60)->end()
79-
->scalarNode('prefix')->defaultValue('')->end()
79+
->scalarNode('command_name')->defaultNull()->end()
80+
->scalarNode('queue_name')->defaultNull()->end()
8081
->end()
8182
->addDefaultsIfNotSet()
8283
->canBeEnabled()

DependencyInjection/EnqueueExtension.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,8 @@ private function loadAsyncCommands(array $config, ContainerBuilder $container):
297297
$configs[] = [
298298
'name' => $name,
299299
'timeout' => $modules['async_commands']['timeout'],
300-
'prefix' => $modules['async_commands']['prefix'],
300+
'command_name' => $modules['async_commands']['command_name'],
301+
'queue_name' => $modules['async_commands']['queue_name'],
301302
];
302303
}
303304
}

Tests/Functional/App/config/config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ enqueue:
3131
async_commands:
3232
enabled: true
3333
timeout: 60
34-
prefix: ''
34+
command_name: ~
35+
queue_name: ~
3536

3637
services:
3738
test_enqueue.client.default.traceable_producer:

0 commit comments

Comments
 (0)