8000 [FrameworkBundle] fixed guard event names for transitions · alex-dev/symfony@9bbb1e5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9bbb1e5

Browse files
destillatnicolas-grekas
authored andcommitted
[FrameworkBundle] fixed guard event names for transitions
1 parent f495168 commit 9bbb1e5

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
@@ -679,7 +679,9 @@ private function registerWorkflowConfiguration(array $config, ContainerBuilder $
679679
$guard = new Definition(Workflow\EventListener\GuardListener::class);
680680
$guard->setPrivate(true);
681681
$configuration = array();
682-
foreach ($workflow['transitions'] as $transitionName => $config) {
682+
foreach ($workflow['transitions'] as $config) {
683+
$transitionName = $config['name'];
684+
683685
if (!isset($config['guard'])) {
684686
continue;
685687
}

0 commit comments

Comments
 (0)
0