summaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/lib/Controller/FlowOperations.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/workflowengine/lib/Controller/FlowOperations.php')
-rw-r--r--apps/workflowengine/lib/Controller/FlowOperations.php21
1 files changed, 1 insertions, 20 deletions
diff --git a/apps/workflowengine/lib/Controller/FlowOperations.php b/apps/workflowengine/lib/Controller/FlowOperations.php
index e0836c727a2..94b8b9ddc79 100644
--- a/apps/workflowengine/lib/Controller/FlowOperations.php
+++ b/apps/workflowengine/lib/Controller/FlowOperations.php
@@ -26,38 +26,19 @@ use OCP\AppFramework\Controller;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\JSONResponse;
use OCP\IRequest;
-use OCP\WorkflowEngine\RegisterCheckEvent;
-use Symfony\Component\EventDispatcher\EventDispatcherInterface;
class FlowOperations extends Controller {
/** @var Manager */
protected $manager;
- /** @var EventDispatcherInterface */
- protected $dispatcher;
-
/**
* @param IRequest $request
* @param Manager $manager
- * @param EventDispatcherInterface $dispatcher
*/
- public function __construct(IRequest $request, Manager $manager, EventDispatcherInterface $dispatcher) {
+ public function __construct(IRequest $request, Manager $manager) {
parent::__construct('workflowengine', $request);
$this->manager = $manager;
- $this->dispatcher = $dispatcher;
- }
-
- /**
- * @NoCSRFRequired
- *
- * @return JSONResponse
- */
- public function getChecks() {
- $event = new RegisterCheckEvent();
- $this->dispatcher->dispatch('OCP\WorkflowEngine\RegisterCheckEvent', $event);
-
- return new JSONResponse($event->getChecks());
}
/**