actionHandlerService = $actionHandlerService; $this->templateNameService = $templateNameService; $this->actionTemplateDataStore = $actionTemplateDataStore; $this->requestedActionFormBuilderService = $requestedActionFormBuilderService; $this->requestedActionService = $requestedActionService; $this->secureRequestedRightCheckerService = $secureRequestedRightCheckerService; } /** * @todo Move * {@inheritdoc} * * @see \Infinito\Domain\ProcessManagement\ProcessServiceInterface::process() */ public function process(): void { if ($this->requestedActionService->hasRequestedEntity() && $this->requestedActionService->getRequestedEntity()->hasIdentity()) { // READ VIEW // $this->requestedActionService->setActionType(ActionType::READ); if ($this->secureRequestedRightCheckerService->check($this->requestedActionService)) { $read = $this->actionHandlerService->handle(); $this->actionTemplateDataStore->setData(ActionType::READ, $read); } // $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 { // CREATE $this->requestedActionService->getRequestedEntity()->setClass(TextSource::class); $updateForm = $this->requestedActionFormBuilderService->createByService() ->getForm() ->createView(); $this->actionTemplateDataStore->setData(ActionType::CREATE, $updateForm); } } }