Optimized workflow

This commit is contained in:
Kevin Frantz 2018-09-06 08:22:13 +02:00
parent 0955f6a920
commit e303221507
3 changed files with 7 additions and 7 deletions

View File

@ -1,7 +1,6 @@
<?php
namespace Controller\workflow;
namespace App\Controller\workflow;
use App\Controller\workflow\WorkflowInterface;
use App\Entity\NodeInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
@ -13,13 +12,17 @@ use Symfony\Component\HttpFoundation\Response;
*/
abstract class AbstractWorkflow implements WorkflowInterface
{
protected $template;
protected $type = 'html';
protected $response;
protected $request;
public function __construct(Request $request){}
public function __construct(){
$this->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();

View File

@ -1,5 +1,5 @@
<?php
namespace Controller\workflow;
namespace App\Controller\workflow;
/**
*

View File

@ -1,8 +1,6 @@
<?php
namespace App\Controller\workflow;
use Controller\workflow\AbstractWorkflow;
/**
*
* @author kevinfrantz