From 4aba1f1cff194fd8d0af20f9d80c878152fc5e00 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Mon, 19 Aug 2019 17:13:47 +0200 Subject: scope aware workflow controller and manager Signed-off-by: Arthur Schiwon --- apps/workflowengine/lib/Command/Index.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'apps/workflowengine/lib/Command/Index.php') 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)); } -- cgit v1.2.3