Skip to content

Commit

Permalink
Fix test endpoint for mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
WilcoLouwerse committed Jan 26, 2024
1 parent dc8138d commit ab35dd5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions api/src/Controller/ConvenienceController.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ class ConvenienceController extends AbstractController
private ActionSubscriber $actionSubscriber;
private ObjectEntityService $objectEntityService;
private MappingService $mappingService;
private Environment $twig;

public function __construct(
EntityManagerInterface $entityManager,
Expand All @@ -50,7 +49,7 @@ public function __construct(
HandlerService $handlerService,
ActionSubscriber $actionSubscriber,
ObjectEntityService $objectEntityService,
Environment $twig
MappingService $mappingService
) {
$this->entityManager = $entityManager;
$this->serializer = $serializer;
Expand All @@ -60,8 +59,7 @@ public function __construct(
$this->handlerService = $handlerService;
$this->actionSubscriber = $actionSubscriber;
$this->objectEntityService = $objectEntityService;
$this->twig = $twig;
$this->mappingService = new MappingService($twig);
$this->mappingService = $mappingService;
}

/**
Expand Down

0 comments on commit ab35dd5

Please sign in to comment.