Correct injection of services

This commit is contained in:
2025-05-28 16:10:07 +02:00
parent 13a9e14450
commit 640a7bcd0a
8 changed files with 15 additions and 26 deletions

View File

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

View File

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

View File

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

View File

@@ -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
{