aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/lib/Controller/FlowOperations.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-07-27 08:54:34 +0200
committerJoas Schilling <coding@schilljs.com>2016-07-27 10:21:26 +0200
commit681eebcfe613157e05919a3223fcd0bbbe324638 (patch)
tree654be10c0d4313b49520254e79d65602de466b38 /apps/workflowengine/lib/Controller/FlowOperations.php
parent7588f648a14bd6ec3c2573ede5327b0277ecccf0 (diff)
downloadnextcloud-server-681eebcfe613157e05919a3223fcd0bbbe324638.tar.gz
nextcloud-server-681eebcfe613157e05919a3223fcd0bbbe324638.zip
Remove php side of check registration
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());
}
/**