diff options
Diffstat (limited to 'apps/workflowengine/lib/Command')
-rw-r--r-- | apps/workflowengine/lib/Command/Index.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/workflowengine/lib/Command/Index.php b/apps/workflowengine/lib/Command/Index.php index 8098bc5d5ea..7f3af3c0811 100644 --- a/apps/workflowengine/lib/Command/Index.php +++ b/apps/workflowengine/lib/Command/Index.php @@ -24,6 +24,7 @@ declare(strict_types=1); namespace OCA\WorkflowEngine\Command; +use OCA\WorkflowEngine\Helper\ScopeContext; use OCA\WorkflowEngine\Manager; use OCP\WorkflowEngine\IManager; use Symfony\Component\Console\Command\Command; @@ -69,8 +70,10 @@ class Index extends Command { protected function execute(InputInterface $input, OutputInterface $output) { $ops = $this->manager->getAllOperations( - $this->mappedScope($input->getArgument('scope')), - $input->getArgument('scopeId') + new ScopeContext( + $this->mappedScope($input->getArgument('scope')), + $input->getArgument('scopeId') + ) ); $output->writeln(\json_encode($ops)); } |