8000 [FrameworkBundle] fixed guard event names for transitions · symfony/symfony@757907b · GitHub
[go: up one dir, main page]

Skip to content

Commit 757907b

Browse files
committed
[FrameworkBundle] fixed guard event names for transitions
1 parent 4639525 commit 757907b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,9 @@ private function registerWorkflowConfiguration(array $workflows, ContainerBuilde
547547
// Add Guard Listener
548548
$guard = new Definition(Workflow\EventListener\GuardListener::class);
549549
$configuration = array();
550-
foreach ($workflow['transitions'] as $transitionName => $config) {
550+
foreach ($workflow['transitions'] as $config) {
551+
$transitionName = $config['name'];
552+
551553
if (!isset($config['guard'])) {
552554
continue;
553555
}

0 commit comments

Comments
 (0)
0