From e303221507af3d3b6131c8a812b3e73e2986c1dc Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Thu, 6 Sep 2018 08:22:13 +0200 Subject: [PATCH] Optimized workflow --- .../src/Controller/workflow/AbstractWorkflow.php | 10 ++++++---- application/src/Controller/workflow/LoginWorkflow.php | 2 +- application/src/Controller/workflow/LogoutWorkflow.php | 2 -- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/application/src/Controller/workflow/AbstractWorkflow.php b/application/src/Controller/workflow/AbstractWorkflow.php index da6185d..4da45fb 100644 --- a/application/src/Controller/workflow/AbstractWorkflow.php +++ b/application/src/Controller/workflow/AbstractWorkflow.php @@ -1,7 +1,6 @@ response = new Response(); + } abstract protected function handlePost():void; @@ -29,7 +32,6 @@ abstract class AbstractWorkflow implements WorkflowInterface public function work(): void { - $this->response = new Response(); $this->setType(); $this->handlePost(); $this->handleGet(); diff --git a/application/src/Controller/workflow/LoginWorkflow.php b/application/src/Controller/workflow/LoginWorkflow.php index e4f7ecf..563ebcf 100644 --- a/application/src/Controller/workflow/LoginWorkflow.php +++ b/application/src/Controller/workflow/LoginWorkflow.php @@ -1,5 +1,5 @@