mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-09 14:07:25 +01:00
Optimized workflow
This commit is contained in:
parent
0955f6a920
commit
e303221507
@ -1,7 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace Controller\workflow;
|
namespace App\Controller\workflow;
|
||||||
|
|
||||||
use App\Controller\workflow\WorkflowInterface;
|
|
||||||
use App\Entity\NodeInterface;
|
use App\Entity\NodeInterface;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
@ -13,13 +12,17 @@ use Symfony\Component\HttpFoundation\Response;
|
|||||||
*/
|
*/
|
||||||
abstract class AbstractWorkflow implements WorkflowInterface
|
abstract class AbstractWorkflow implements WorkflowInterface
|
||||||
{
|
{
|
||||||
|
protected $template;
|
||||||
|
|
||||||
protected $type = 'html';
|
protected $type = 'html';
|
||||||
|
|
||||||
protected $response;
|
protected $response;
|
||||||
|
|
||||||
protected $request;
|
protected $request;
|
||||||
|
|
||||||
public function __construct(Request $request){}
|
public function __construct(){
|
||||||
|
$this->response = new Response();
|
||||||
|
}
|
||||||
|
|
||||||
abstract protected function handlePost():void;
|
abstract protected function handlePost():void;
|
||||||
|
|
||||||
@ -29,7 +32,6 @@ abstract class AbstractWorkflow implements WorkflowInterface
|
|||||||
|
|
||||||
public function work(): void
|
public function work(): void
|
||||||
{
|
{
|
||||||
$this->response = new Response();
|
|
||||||
$this->setType();
|
$this->setType();
|
||||||
$this->handlePost();
|
$this->handlePost();
|
||||||
$this->handleGet();
|
$this->handleGet();
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace Controller\workflow;
|
namespace App\Controller\workflow;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace App\Controller\workflow;
|
namespace App\Controller\workflow;
|
||||||
|
|
||||||
use Controller\workflow\AbstractWorkflow;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author kevinfrantz
|
* @author kevinfrantz
|
||||||
|
Loading…
Reference in New Issue
Block a user