8000 improve message when workflows are missing · symfony/symfony@de7d7d5 · GitHub
[go: up one dir, main page]

Skip to content

Commit de7d7d5

Browse files
committed
improve message when workflows are missing
1 parent 3fe34be commit de7d7d5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,10 @@ private function registerWorkflowConfiguration(array $workflows, ContainerBuilde
397397
return;
398398
}
399399

400+
if (!class_exists(Workflow\Workflow::class)) {
401+
throw new LogicException('Workflow support cannot be enabled as the Workflow component is not installed.');
402+
}
403+
400404
$loader->load('workflow.xml');
401405

402406
$registryDefinition = $container->getDefinition('workflow.registry');

0 commit comments

Comments
 (0)
0