Renamed variables

This commit is contained in:
Kevin Frantz 2019-09-19 21:52:46 +02:00
parent ca95096bc5
commit 893467acca
2 changed files with 4 additions and 4 deletions

View File

@ -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;
} }
} }

View File

@ -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);
} }