mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Optimized Actions, Tests and renamed LIST to THREAD out of php incompatibility reasons
This commit is contained in:
@@ -7,6 +7,15 @@ use App\Domain\ActionManagement\AbstractAction;
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
abstract class AbstractCreateAction extends AbstractAction
|
||||
abstract class AbstractCreateAction extends AbstractAction implements CreateActionInterface
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*
|
||||
* @see \App\Domain\ActionManagement\AbstractAction::isSecure()
|
||||
*/
|
||||
protected function isSecure(): bool
|
||||
{
|
||||
return $this->actionService->isRequestedActionSecure();
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\ActionManagement\Create;
|
||||
|
||||
use App\Domain\ActionManagement\ActionInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface CreateActionInterface extends ActionInterface
|
||||
{
|
||||
}
|
@@ -7,10 +7,6 @@ namespace App\Domain\ActionManagement\Create;
|
||||
*/
|
||||
final class CreateSourceAction extends AbstractCreateAction
|
||||
{
|
||||
protected function isSecure(): bool
|
||||
{
|
||||
}
|
||||
|
||||
protected function isValidByForm(): bool
|
||||
{
|
||||
}
|
||||
|
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\ActionManagement\Thread;
|
||||
|
||||
use App\Domain\ActionManagement\AbstractAction;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
abstract class AbstractThreadAction extends AbstractAction
|
||||
{
|
||||
}
|
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\ActionManagement\Thread;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
final class ThreadSourceAction extends AbstractThreadAction
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*
|
||||
* @see \App\Domain\ActionManagement\AbstractAction::isSecure()
|
||||
*/
|
||||
protected function isSecure(): bool
|
||||
{
|
||||
}
|
||||
|
||||
protected function isValidByForm(): bool
|
||||
{
|
||||
}
|
||||
|
||||
protected function proccess()
|
||||
{
|
||||
}
|
||||
}
|
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\ActionManagement\Update;
|
||||
|
||||
use App\Domain\ActionManagement\AbstractAction;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
abstract class AbstractUpdateAction extends AbstractAction
|
||||
{
|
||||
}
|
@@ -2,6 +2,20 @@
|
||||
|
||||
namespace App\Domain\ActionManagement\Update;
|
||||
|
||||
class UpdateSourceAction
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
final class UpdateSourceAction extends AbstractUpdateAction
|
||||
{
|
||||
protected function isSecure(): bool
|
||||
{
|
||||
}
|
||||
|
||||
protected function isValidByForm(): bool
|
||||
{
|
||||
}
|
||||
|
||||
protected function proccess()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@@ -19,7 +19,7 @@ final class LayerActionMap implements LayerActionMapInterface
|
||||
ActionType::CREATE,
|
||||
ActionType::UPDATE,
|
||||
ActionType::DELETE,
|
||||
ActionType::LIST,
|
||||
ActionType::THREAD,
|
||||
],
|
||||
];
|
||||
|
||||
|
@@ -23,7 +23,7 @@ class RequestedAction extends RequestedUser implements RequestedActionInterface
|
||||
* @var array Containes the mapping of non standard actions to a crud
|
||||
*/
|
||||
const ACTION_CRUD_MAP = [
|
||||
ActionType::LIST => CRUDType::READ,
|
||||
ActionType::THREAD => CRUDType::READ,
|
||||
];
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user