mirror of
https://github.com/nextcloud/server.git
synced 2024-12-29 16:38:28 +00:00
cc1686dba9
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
26 lines
592 B
PHP
26 lines
592 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
namespace OCA\WorkflowEngine\Controller;
|
|
|
|
use OCA\WorkflowEngine\Helper\ScopeContext;
|
|
use OCP\WorkflowEngine\IManager;
|
|
|
|
class GlobalWorkflowsController extends AWorkflowController {
|
|
|
|
/** @var ScopeContext */
|
|
private $scopeContext;
|
|
|
|
protected function getScopeContext(): ScopeContext {
|
|
if ($this->scopeContext === null) {
|
|
$this->scopeContext = new ScopeContext(IManager::SCOPE_ADMIN);
|
|
}
|
|
return $this->scopeContext;
|
|
}
|
|
}
|