mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2024-12-04 23:17:19 +01:00
Renamed variables
This commit is contained in:
parent
ca95096bc5
commit
893467acca
@ -57,8 +57,8 @@ class RequestedActionFormBuilder implements RequestedActionFormBuilderInterface
|
|||||||
$origineClass = $requestedEntity->getClass();
|
$origineClass = $requestedEntity->getClass();
|
||||||
$class = $this->formClassNameService->getClass($origineClass, $actionType);
|
$class = $this->formClassNameService->getClass($origineClass, $actionType);
|
||||||
$entity = ($requestedEntity->hasIdentity()) ? $requestedEntity->getEntity() : null;
|
$entity = ($requestedEntity->hasIdentity()) ? $requestedEntity->getEntity() : null;
|
||||||
$form = $this->formFactory->createBuilder($class, $entity);
|
$formBuilder = $this->formFactory->createBuilder($class, $entity);
|
||||||
|
|
||||||
return $form;
|
return $formBuilder;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -78,14 +78,14 @@ class CreateSourceActionIntegrationTest extends KernelTestCase
|
|||||||
$this->requestedActionService = new RequestedActionService($requestedUserService);
|
$this->requestedActionService = new RequestedActionService($requestedUserService);
|
||||||
$this->requestedActionService->setActionType(ActionType::CREATE);
|
$this->requestedActionService->setActionType(ActionType::CREATE);
|
||||||
$formClassNameService = new FormClassNameService();
|
$formClassNameService = new FormClassNameService();
|
||||||
$entityFormBuilderService = new RequestedActionFormBuilderService($this->formFactory, $formClassNameService, $this->requestedActionService);
|
$requestedActionFormBuilderService = new RequestedActionFormBuilderService($this->formFactory, $formClassNameService, $this->requestedActionService);
|
||||||
$this->request = new Request();
|
$this->request = new Request();
|
||||||
$this->requestStack = new RequestStack();
|
$this->requestStack = new RequestStack();
|
||||||
$this->requestStack->push($this->request);
|
$this->requestStack->push($this->request);
|
||||||
$layerRepositoryFactoryService = new LayerRepositoryFactoryService($entityManager);
|
$layerRepositoryFactoryService = new LayerRepositoryFactoryService($entityManager);
|
||||||
$rightTransformerService = new RightTransformerService();
|
$rightTransformerService = new RightTransformerService();
|
||||||
$secureRequestedRightChecker = new SecureRequestedRightCheckerService($rightTransformerService);
|
$secureRequestedRightChecker = new SecureRequestedRightCheckerService($rightTransformerService);
|
||||||
$this->actionService = new ActionDependenciesDAOService($this->requestedActionService, $secureRequestedRightChecker, $this->requestStack, $layerRepositoryFactoryService, $entityFormBuilderService, $entityManager);
|
$this->actionService = new ActionDependenciesDAOService($this->requestedActionService, $secureRequestedRightChecker, $this->requestStack, $layerRepositoryFactoryService, $requestedActionFormBuilderService, $entityManager);
|
||||||
$this->createSourceAction = new CreateSourceAction($this->actionService);
|
$this->createSourceAction = new CreateSourceAction($this->actionService);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user