mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-06 05:19:43 +00:00
[WIP] Refactor AddressReferenceRepository to use interface and add tests for AddressReferenceAggregatedApiController
This commit is contained in:
@@ -11,7 +11,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace Chill\MainBundle\Controller;
|
||||
|
||||
use Chill\MainBundle\Repository\AddressReferenceRepository;
|
||||
use Chill\MainBundle\Repository\AddressReferenceRepositoryInterface;
|
||||
use Symfony\Component\HttpFoundation\JsonResponse;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
|
||||
@@ -23,7 +23,7 @@ final readonly class AddressReferenceAggregatedApiController
|
||||
{
|
||||
public function __construct(
|
||||
private Security $security,
|
||||
private AddressReferenceRepository $addressReferenceRepository,
|
||||
private AddressReferenceRepositoryInterface $addressReferenceRepository,
|
||||
) {}
|
||||
|
||||
#[Route(path: '/api/1.0/main/address-reference/aggregated/search')]
|
||||
|
Reference in New Issue
Block a user