Skip to content

Commit 2c303aa

Browse files
author
Robin Chalas
committed
Merge branch '4.0' into 4.1
* 4.0: Fix merge [HttpKernel] Fix resetting DumpDataCollector::$isCollected [Framework][Workflow] Added support for interfaces
2 parents 84475d6 + a0a1901 commit 2c303aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DependencyInjection/Configuration.php

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

0 commit comments

Comments
 (0)