aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/lib/Command/Index.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2019-08-19 17:13:47 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2019-09-09 22:56:02 +0200
commit4aba1f1cff194fd8d0af20f9d80c878152fc5e00 (patch)
treefd3dd338c89dfee333caf04cec7cc7b529b531d0 /apps/workflowengine/lib/Command/Index.php
parentbd5c455da4d79458906549082b49b0b83deebee8 (diff)
downloadnextcloud-server-4aba1f1cff194fd8d0af20f9d80c878152fc5e00.tar.gz
nextcloud-server-4aba1f1cff194fd8d0af20f9d80c878152fc5e00.zip
scope aware workflow controller and manager
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/workflowengine/lib/Command/Index.php')
-rw-r--r--apps/workflowengine/lib/Command/Index.php7
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));
}