mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 02:53:50 +00:00
Rector changes: repositories become final readonly classes
This commit is contained in:
@@ -47,25 +47,25 @@ use Symfony\Contracts\Translation\TranslatorInterface;
|
||||
/**
|
||||
* @see PersonContextTest
|
||||
*/
|
||||
final class PersonContext implements PersonContextInterface
|
||||
final readonly class PersonContext implements PersonContextInterface
|
||||
{
|
||||
private readonly bool $showScopes;
|
||||
private bool $showScopes;
|
||||
|
||||
public function __construct(
|
||||
private readonly AuthorizationHelperInterface $authorizationHelper,
|
||||
private readonly BaseContextData $baseContextData,
|
||||
private readonly CenterResolverManagerInterface $centerResolverManager,
|
||||
private readonly DocumentCategoryRepository $documentCategoryRepository,
|
||||
private readonly EntityManagerInterface $em,
|
||||
private readonly NormalizerInterface $normalizer,
|
||||
private AuthorizationHelperInterface $authorizationHelper,
|
||||
private BaseContextData $baseContextData,
|
||||
private CenterResolverManagerInterface $centerResolverManager,
|
||||
private DocumentCategoryRepository $documentCategoryRepository,
|
||||
private EntityManagerInterface $em,
|
||||
private NormalizerInterface $normalizer,
|
||||
ParameterBagInterface $parameterBag,
|
||||
private readonly ScopeRepositoryInterface $scopeRepository,
|
||||
private readonly Security $security,
|
||||
private readonly TranslatorInterface $translator,
|
||||
private readonly TranslatableStringHelperInterface $translatableStringHelper,
|
||||
private readonly ThirdPartyRender $thirdPartyRender,
|
||||
private readonly ThirdPartyRepository $thirdPartyRepository,
|
||||
private readonly ResidentialAddressRepository $residentialAddressRepository
|
||||
private ScopeRepositoryInterface $scopeRepository,
|
||||
private Security $security,
|
||||
private TranslatorInterface $translator,
|
||||
private TranslatableStringHelperInterface $translatableStringHelper,
|
||||
private ThirdPartyRender $thirdPartyRender,
|
||||
private ThirdPartyRepository $thirdPartyRepository,
|
||||
private ResidentialAddressRepository $residentialAddressRepository
|
||||
) {
|
||||
$this->showScopes = $parameterBag->get('chill_main')['acl']['form_show_scopes'];
|
||||
}
|
||||
|
Reference in New Issue
Block a user