Skip to content

Commit 153d539

Browse files
vudaltsovfabpot
authored andcommitted
[Framework][Workflow] Added support for interfaces
1 parent e4a608e commit 153d539

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
@@ -329,8 +329,8 @@ private function addWorkflowSection(ArrayNodeDefinition $rootNode)
329329
->prototype('scalar')
330330
->cannotBeEmpty()
331331
->validate()
332-
->ifTrue(function ($v) { return !class_exists($v); })
333-
->thenInvalid('The supported class %s does not exist.')
332+
->ifTrue(function ($v) { return !class_exists($v) && !interface_exists($v); })
333+
->thenInvalid('The supported class or interface "%s" does not exist.')
334334
->end()
335335
->end()
336336
->end()

0 commit comments

Comments
 (0)