Skip to content

Commit a0a1901

Browse files
author
Robin Chalas
committed
Merge branch '3.4' into 4.0
* 3.4: Fix merge [HttpKernel] Fix resetting DumpDataCollector::$isCollected [Framework][Workflow] Added support for interfaces
2 parents 10116bf + 153d539 commit a0a1901

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
@@ -280,8 +280,8 @@ private function addWorkflowSection(ArrayNodeDefinition $rootNode)
280280
->prototype('scalar')
281281
->cannotBeEmpty()
282282
->validate()
283-
->ifTrue(function ($v) { return !class_exists($v); })
284-
->thenInvalid('The supported class %s does not exist.')
283+
->ifTrue(function ($v) { return !class_exists($v) && !interface_exists($v); })
284+
->thenInvalid('The supported class or interface "%s" does not exist.')
285285
->end()
286286
->end()
287287
->end()

0 commit comments

Comments
 (0)