mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-04 12:29:43 +00:00
Correct injection of services
This commit is contained in:
@@ -55,10 +55,7 @@ final class AccompanyingCourseApiController extends ApiController
|
||||
private readonly Registry $registry,
|
||||
private readonly ValidatorInterface $validator,
|
||||
private readonly AccompanyingPeriodWorkRepository $accompanyingPeriodWorkRepository,
|
||||
ManagerRegistry $managerRegistry,
|
||||
SerializerInterface $serializer,
|
||||
) {
|
||||
parent::__construct($serializer, $managerRegistry);
|
||||
}
|
||||
|
||||
public function commentApi($id, Request $request, string $_format): Response
|
||||
|
@@ -37,10 +37,7 @@ class HouseholdApiController extends ApiController
|
||||
private readonly EventDispatcherInterface $eventDispatcher,
|
||||
private readonly HouseholdRepository $householdRepository,
|
||||
private readonly HouseholdACLAwareRepositoryInterface $householdACLAwareRepository,
|
||||
ManagerRegistry $managerRegistry,
|
||||
SerializerInterface $serializer,
|
||||
) {
|
||||
parent::__construct($serializer, $managerRegistry);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -47,11 +47,8 @@ class HouseholdMemberController extends ApiController
|
||||
private readonly HouseholdRepository $householdRepository,
|
||||
private readonly Security $security,
|
||||
private readonly PositionRepository $positionRepository,
|
||||
ManagerRegistry $managerRegistry,
|
||||
SerializerInterface $serializer,
|
||||
protected ParameterBagInterface $parameterBag,
|
||||
) {
|
||||
parent::__construct($serializer, $managerRegistry);
|
||||
$this->household_fields_visibility = $parameterBag->get('chill_person.household_fields');
|
||||
}
|
||||
|
||||
|
@@ -22,7 +22,6 @@ use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
|
||||
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
|
||||
class PersonApiController extends ApiController
|
||||
{
|
||||
|
Reference in New Issue
Block a user