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
{{ message }}
Repository navigation
Commit 2c1e8fd
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: pkg/enqueue/Symfony/DependencyInjection/TransportFactory.php
+18-4Lines changed: 18 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,10 @@ public function addConfiguration(ArrayNodeDefinition $builder): void
43
43
thrownew \LogicException('Both options factory_class and factory_service are set. Please choose one.');
44
44
}
45
45
46
+
if (isset($v['connection_factory_class']) && (isset($v['factory_class']) || isset($v['factory_service']))) {
47
+
thrownew \LogicException('The option connection_factory_class must not be used with factory_class or factory_service at the same time. Please choose one.');
48
+
}
49
+
46
50
return$v;
47
51
}
48
52
@@ -56,6 +60,7 @@ public function addConfiguration(ArrayNodeDefinition $builder): void
$this->expectExceptionMessage('The option connection_factory_class must not be used with factory_class or factory_service at the same time. Please choose one.');
$this->expectExceptionMessage('The option connection_factory_class must not be used with factory_class or factory_service at the same time. Please choose one.');
169
+
$processor->process($tb->buildTree(), [[
170
+
'dsn' => 'foo:',
171
+
'connection_factory_class' => 'aFactoryClass',
172
+
'factory_service' => 'aFactoryService',
173
+
]]);
174
+
}
175
+
140
176
publicfunctiontestShouldAllowSetFactoryClass()
141
177
{
142
178
$transport = newTransportFactory('default');
@@ -173,6 +209,24 @@ public function testShouldAllowSetFactoryService()
0 commit comments