Skip to content

Commit 9e75847

Browse files
Jean-Berufabpot
authored andcommitted
[FrameworkBundle][Workflow] Fix deprectation when checking workflow.registry service in dump command
1 parent d484f72 commit 9e75847

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

src/Symfony/Bundle/FrameworkBundle/Command/WorkflowDumpCommand.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,6 @@ class WorkflowDumpCommand extends ContainerAwareCommand
2727
{
2828
protected static $defaultName = 'workflow:dump';
2929

30-
/**
31-
* {@inheritdoc}
32-
*
33-
* BC to be removed in 4.0
34-
*/
35-
public function isEnabled()
36-
{
37-
return $this->getContainer()->has('workflow.registry');
38-
}
39-
4030
/**
4131
* {@inheritdoc}
4232
*/

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -624,9 +624,7 @@ private function registerProfilerConfiguration(array $config, ContainerBuilder $
624624
private function registerWorkflowConfiguration(array $config, ContainerBuilder $container, XmlFileLoader $loader)
625625
{
626626
if (!$config['enabled']) {
627-
if (!class_exists(Workflow\Workflow::class)) {
628-
$container->removeDefinition(WorkflowDumpCommand::class);
629-
}
627+
$container->removeDefinition(WorkflowDumpCommand::class);
630628

631629
return;
632630
}

0 commit comments

Comments
 (0)