Deleted unnecessary workflow

This commit is contained in:
Kevin Frantz 2018-09-12 20:01:19 +02:00
parent a57ead18e2
commit 45715c4fcf
4 changed files with 0 additions and 112 deletions

View File

@ -1,51 +0,0 @@
<?php
namespace App\Controller\workflow;
use App\Entity\NodeInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
/**
*
* @author kevinfrantz
*
*/
abstract class AbstractWorkflow implements WorkflowInterface
{
protected $template;
protected $type = 'html';
protected $response;
protected $request;
public function __construct(){
$this->response = new Response();
}
abstract protected function handlePost():void;
abstract protected function handleGet():void;
private function setType():void{}
public function work(): void
{
$this->setType();
$this->handlePost();
$this->handleGet();
}
public function setReguest(Request $request): void
{
}
public function getReponse(): Response
{}
public function setWorker(NodeInterface $worker): void
{}
}

View File

@ -1,20 +0,0 @@
<?php
namespace App\Controller\workflow;
/**
*
* @author kevinfrantz
*
*/
class LoginWorkflow extends AbstractWorkflow
{
protected function handleGet(): void
{
}
protected function handlePost(): void
{}
}

View File

@ -1,18 +0,0 @@
<?php
namespace App\Controller\workflow;
/**
*
* @author kevinfrantz
*
*/
class LogoutWorkflow extends AbstractWorkflow
{
protected function handleGet(): void
{}
protected function handlePost(): void
{}
}

View File

@ -1,23 +0,0 @@
<?php
namespace App\Controller\workflow;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use App\Entity\NodeInterface;
/**
*
* @author kevinfrantz
*
*/
interface WorkflowInterface
{
public function setWorker(NodeInterface $worker):void;
public function setReguest(Request $request):void;
public function work():void;
public function getReponse():Response;
}