From 05e87bdfcc33901f41452b1ddb3bcadbae900411 Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Wed, 5 Sep 2018 19:52:21 +0200 Subject: [PATCH] Added workflow draft --- .../Controller/workflow/AbstractWorkflow.php | 49 +++++++++++++++++++ .../src/Controller/workflow/LoginWorkflow.php | 20 ++++++++ .../Controller/workflow/LogoutWorkflow.php | 20 ++++++++ .../Controller/workflow/WorkflowInterface.php | 23 +++++++++ 4 files changed, 112 insertions(+) create mode 100644 application/src/Controller/workflow/AbstractWorkflow.php create mode 100644 application/src/Controller/workflow/LoginWorkflow.php create mode 100644 application/src/Controller/workflow/LogoutWorkflow.php create mode 100644 application/src/Controller/workflow/WorkflowInterface.php diff --git a/application/src/Controller/workflow/AbstractWorkflow.php b/application/src/Controller/workflow/AbstractWorkflow.php new file mode 100644 index 0000000..da6185d --- /dev/null +++ b/application/src/Controller/workflow/AbstractWorkflow.php @@ -0,0 +1,49 @@ +response = new Response(); + $this->setType(); + $this->handlePost(); + $this->handleGet(); + } + + public function setReguest(Request $request): void + { + } + + public function getReponse(): Response + {} + + public function setWorker(NodeInterface $worker): void + {} + +} + diff --git a/application/src/Controller/workflow/LoginWorkflow.php b/application/src/Controller/workflow/LoginWorkflow.php new file mode 100644 index 0000000..e4f7ecf --- /dev/null +++ b/application/src/Controller/workflow/LoginWorkflow.php @@ -0,0 +1,20 @@ +