mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-08 13:51:34 +01:00
Deleted unnecessary workflow
This commit is contained in:
parent
a57ead18e2
commit
45715c4fcf
@ -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
|
||||
{}
|
||||
|
||||
}
|
||||
|
@ -1,20 +0,0 @@
|
||||
<?php
|
||||
namespace App\Controller\workflow;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author kevinfrantz
|
||||
*
|
||||
*/
|
||||
class LoginWorkflow extends AbstractWorkflow
|
||||
{
|
||||
protected function handleGet(): void
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected function handlePost(): void
|
||||
{}
|
||||
|
||||
}
|
||||
|
@ -1,18 +0,0 @@
|
||||
<?php
|
||||
namespace App\Controller\workflow;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author kevinfrantz
|
||||
*
|
||||
*/
|
||||
class LogoutWorkflow extends AbstractWorkflow
|
||||
{
|
||||
protected function handleGet(): void
|
||||
{}
|
||||
|
||||
protected function handlePost(): void
|
||||
{}
|
||||
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user