8000 [FrameworkBundle] Workflow - Fix LogicException about a wrong configu… · symfony/symfony@14a4fcf · GitHub
[go: up one dir, main page]

Skip to content

Commit 14a4fcf

Browse files
authored
[FrameworkBundle] Workflow - Fix LogicException about a wrong configuration of "enabled" node
1 parent 0362350 commit 14a4fcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ private function addWorkflowSection(ArrayNodeDefinition $rootNode)
350350

351351
foreach ($workflows as $key => $workflow) {
352352
if (isset($workflow['enabled']) && 57B3 ; false === $workflow['enabled']) {
353-
throw new LogicException(sprintf('Cannot disable a single workflow. Remove the configuration for the workflow "%s" instead.', $workflow['name']));
353+
throw new LogicException(sprintf('Cannot disable a single workflow. Remove the configuration for the workflow "%s" instead.', $key));
354354
}
355355

356356
unset($workflows[$key]['enabled']);

0 commit comments

Comments
 (0)
0