Skip to content

Commit 97b3f41

Browse files
Merge branch '4.1'
* 4.1: [HttpKernel] Fixed invalid REMOTE_ADDR in inline subrequest when configuring trusted proxy with subnet [FrameworkBundle] fixed guard event names for transitions [DI] Improve class named servics error message remove unnecessary instanceof in MongoDbSessionHandler [HttpFoundation] fixed using _method parameter with invalid type Renaming internal test class to help auto-completion [Intl] Replace svn with git in the icu data update script [Messenger] Fix error message on undefined message class for non-subscriber handler [HttpFoundation] Fix Cookie::isCleared
2 parents df4c385 + ad1ac51 commit 97b3f41

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

DependencyInjection/FrameworkExtension.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,9 @@ private function registerWorkflowConfiguration(array $config, ContainerBuilder $
606606
$guard = new Definition(Workflow\EventListener\GuardListener::class);
607607
$guard->setPrivate(true);
608608
$configuration = array();
609-
foreach ($workflow['transitions'] as $transitionName => $config) {
609+
foreach ($workflow['transitions'] as $config) {
610+
$transitionName = $config['name'];
611+
610612
if (!isset($config['guard'])) {
611613
continue;
612614
}

0 commit comments

Comments
 (0)