improve message when workflows are missing

This commit is contained in:
Christian Flothmann 2017-03-17 15:04:44 +01:00
parent 3fe34be1ed
commit 46c12c9d1d
2 changed files with 5 additions and 0 deletions

View File

@ -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');

View File

@ -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",