improve message when workflows are missing
This commit is contained in:
parent
3fe34be1ed
commit
46c12c9d1d
@ -397,6 +397,10 @@ class FrameworkExtension extends Extension
|
||||
return;
|
||||
}
|
||||
|
||||
if (!class_exists(Workflow\Workflow::class)) {
|
||||
throw new LogicException('Workflow support cannot be enabled as the Workflow component is not installed.');
|
||||
}
|
||||
|
||||
$loader->load('workflow.xml');
|
||||
|
||||
$registryDefinition = $container->getDefinition('workflow.registry');
|
||||
|
@ -50,6 +50,7 @@
|
||||
"symfony/translation": "~3.2",
|
||||
"symfony/templating": "~2.8|~3.0",
|
||||
"symfony/validator": "~3.2",
|
||||
"symfony/workflow": "~3.2",
|
||||
"symfony/yaml": "~3.2",
|
||||
"symfony/property-info": "~3.1",
|
||||
"doctrine/annotations": "~1.0",
|
||||
|
Reference in New Issue
Block a user