8000 Merge branch '4.0' · symfony/symfony@28d754d · GitHub
[go: up one dir, main page]

Skip to content

Commit 28d754d

Browse files
author
Robin Chalas
committed
Merge branch '4.0'
* 4.0: Fix merge [HttpKernel] Fix resetting DumpDataCollector::$isCollected [Framework][Workflow] Added support for interfaces
2 parents 3ccbec3 + 57fc15b commit 28d754d

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,8 @@ private function addWorkflowSection(ArrayNodeDefinition $rootNode)
284284
->prototype('scalar')
285285
->cannotBeEmpty()
286286
->validate()
287-
->ifTrue(function ($v) { return !class_exists($v); })
288-
->thenInvalid('The supported class %s does not exist.')
287+
->ifTrue(function ($v) { return !class_exists($v) && !interface_exists($v); })
288+
->thenInvalid('The supported class or interface "%s" does not exist.')
289289
->end()
290290
->end()
291291
->end()

src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/GuardAuthenticationFactory.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ public function create(ContainerBuilder $container, $id, $config, $userProvider,
8080
$listener = $container->setDefinition($listenerId, new ChildDefinition('security.authentication.listener.guard'));
8181
$listener->replaceArgument(2, $id);
8282
$listener->replaceArgument(3, $authenticators);
83-
$listener->addMethodCall('setSessionAuthenticationStrategy', array(new Reference('security.authentication.session_strategy.'.$id)));
8483

8584
// determine the entryPointId to use
8685
$entryPointId = $this->determineEntryPoint($defaultEntryPoint, $config);

src/Symfony/Component/HttpKernel/DataCollector/DumpDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public function reset()
124124
}
125125
$this->data = array();
126126
$this->dataCount = 0;
127-
$this->isCollected = false;
127+
$this->isCollected = true;
128128
$this->clonesCount = 0;
129129
$this->clonesIndex = 0;
130130
}

0 commit comments

Comments
 (0)
0