mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
deleted deprecated code
This commit is contained in:
@@ -8,6 +8,7 @@ use Infinito\Domain\SecureManagement\SecureRequestedRightCheckerServiceInterface
|
||||
use Infinito\Domain\ActionManagement\ActionHandlerServiceInterface;
|
||||
use Infinito\Entity\Source\Primitive\Text\TextSource;
|
||||
use Infinito\Domain\DataAccessManagement\ActionsResultsDAOServiceInterface;
|
||||
use Infinito\Domain\ParameterManagement\ValidGetParameterServiceInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
@@ -34,18 +35,24 @@ final class ProcessService implements ProcessServiceInterface
|
||||
*/
|
||||
private $actionsResultsDAOService;
|
||||
|
||||
/**
|
||||
* @var ValidGetParameterServiceInterface
|
||||
*/
|
||||
private $validGetParameterService;
|
||||
|
||||
/**
|
||||
* @param ActionHandlerServiceInterface $actionHandlerService
|
||||
* @param ActionsResultsDAOServiceInterface $actionTemplateDataStore
|
||||
* @param RequestedActionServiceInterface $requestedActionService
|
||||
* @param SecureRequestedRightCheckerServiceInterface $secureRequestedRightCheckerService
|
||||
*/
|
||||
public function __construct(ActionHandlerServiceInterface $actionHandlerService, ActionsResultsDAOServiceInterface $actionTemplateDataStore, RequestedActionServiceInterface $requestedActionService, SecureRequestedRightCheckerServiceInterface $secureRequestedRightCheckerService)
|
||||
public function __construct(ActionHandlerServiceInterface $actionHandlerService, ActionsResultsDAOServiceInterface $actionTemplateDataStore, RequestedActionServiceInterface $requestedActionService, SecureRequestedRightCheckerServiceInterface $secureRequestedRightCheckerService, ValidGetParameterServiceInterface $validGetParameterService)
|
||||
{
|
||||
$this->actionHandlerService = $actionHandlerService;
|
||||
$this->actionsResultsDAOService = $actionTemplateDataStore;
|
||||
$this->requestedActionService = $requestedActionService;
|
||||
$this->secureRequestedRightCheckerService = $secureRequestedRightCheckerService;
|
||||
$this->validGetParameterService = $validGetParameterService;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -59,15 +66,19 @@ final class ProcessService implements ProcessServiceInterface
|
||||
if ($this->requestedActionService->hasRequestedEntity() && $this->requestedActionService->getRequestedEntity()->hasIdentity()) {
|
||||
// READ VIEW
|
||||
if ($this->secureRequestedRightCheckerService->check($this->requestedActionService)) {
|
||||
$read = $this->actionHandlerService->handle();
|
||||
$this->actionsResultsDAOService->setData(ActionType::READ, $read);
|
||||
$actionType = $this->requestedActionService->getActionType();
|
||||
switch ($actionType) {
|
||||
case ActionType::READ:
|
||||
$read = $this->actionHandlerService->handle();
|
||||
$this->actionsResultsDAOService->setData($actionType, $read);
|
||||
break;
|
||||
case ActionType::UPDATE:
|
||||
$updateForm = $this->requestedActionFormBuilderService->createByService()->getForm()->createView();
|
||||
$this->actionTemplateDataStore->setData(ActionType::UPDATE, $updateForm);
|
||||
}
|
||||
}
|
||||
|
||||
// $this->requestedActionService->setActionType(ActionType::UPDATE);
|
||||
// UPDATE VIEW
|
||||
// if ($this->secureRequestedRightCheckerService->check($this->requestedActionService)) {
|
||||
// $updateForm = $this->requestedActionFormBuilderService->createByService()->getForm()->createView();
|
||||
// $this->actionTemplateDataStore->setData(ActionType::UPDATE, $updateForm);
|
||||
// }
|
||||
// DELETE VIEW
|
||||
// EXECUTE VIEW
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user