mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2024-12-04 23:17:19 +01:00
Removed unnecessary line
This commit is contained in:
parent
e94f83e5f6
commit
783e252a85
@ -92,23 +92,22 @@ final class MVCRoutineService implements MVCRoutineServiceInterface
|
||||
{
|
||||
if (!$this->actionType) {
|
||||
if ($this->requestedActionService->hasRequestedEntity() && $this->requestedActionService->getRequestedEntity()->hasIdentity()) {
|
||||
//READ
|
||||
//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
|
||||
//UPDATE VIEW
|
||||
if ($this->secureRequestedRightCheckerService->check($this->requestedActionService)) {
|
||||
$updateForm = $this->requestedActionFormBuilderService->createByService()->getForm()->createView();
|
||||
$this->actionTemplateDataStore->setData(ActionType::UPDATE, $updateForm);
|
||||
}
|
||||
//DELETE
|
||||
//EXECUTE
|
||||
//DELETE VIEW
|
||||
//EXECUTE VIEW
|
||||
} else {
|
||||
//CREATE
|
||||
$this->requestedActionService->setActionType(ActionType::CREATE);
|
||||
$this->requestedActionService->getRequestedEntity()->setClass(TextSource::class);
|
||||
$updateForm = $this->requestedActionFormBuilderService->createByService()->getForm()->createView();
|
||||
$this->actionTemplateDataStore->setData(ActionType::CREATE, $updateForm);
|
||||
|
Loading…
Reference in New Issue
Block a user