mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
fix errors when clearing cache
This commit is contained in:
parent
7f02130ff2
commit
5d74b3ab0a
@ -59,14 +59,14 @@ class ChillImportUsersCommand extends Command
|
|||||||
EntityManagerInterface $em,
|
EntityManagerInterface $em,
|
||||||
LoggerInterface $logger,
|
LoggerInterface $logger,
|
||||||
UserPasswordEncoderInterface $passwordEncoder,
|
UserPasswordEncoderInterface $passwordEncoder,
|
||||||
ValidatorInterface $validator
|
ValidatorInterface $validator,
|
||||||
|
UserRepository $userRepository
|
||||||
) {
|
) {
|
||||||
$this->em = $em;
|
$this->em = $em;
|
||||||
$this->passwordEncoder = $passwordEncoder;
|
$this->passwordEncoder = $passwordEncoder;
|
||||||
$this->validator = $validator;
|
$this->validator = $validator;
|
||||||
$this->logger = $logger;
|
$this->logger = $logger;
|
||||||
|
$this->userRepository = $userRepository;
|
||||||
$this->userRepository = $em->getRepository(User::class);
|
|
||||||
|
|
||||||
parent::__construct('chill:main:import-users');
|
parent::__construct('chill:main:import-users');
|
||||||
}
|
}
|
||||||
|
@ -5,6 +5,7 @@ services:
|
|||||||
$logger: '@Psr\Log\LoggerInterface'
|
$logger: '@Psr\Log\LoggerInterface'
|
||||||
$passwordEncoder: '@Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface'
|
$passwordEncoder: '@Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface'
|
||||||
$validator: '@Symfony\Component\Validator\Validator\ValidatorInterface'
|
$validator: '@Symfony\Component\Validator\Validator\ValidatorInterface'
|
||||||
|
$userRepository: '@Chill\MainBundle\Repository\UserRepository'
|
||||||
tags:
|
tags:
|
||||||
- { name: console.command }
|
- { name: console.command }
|
||||||
|
|
||||||
|
@ -8,7 +8,6 @@ services:
|
|||||||
$eventDispatcher: '@Symfony\Component\EventDispatcher\EventDispatcherInterface'
|
$eventDispatcher: '@Symfony\Component\EventDispatcher\EventDispatcherInterface'
|
||||||
$timelineBuilder: '@chill_main.timeline_builder'
|
$timelineBuilder: '@chill_main.timeline_builder'
|
||||||
$paginatorFactory: '@chill_main.paginator_factory'
|
$paginatorFactory: '@chill_main.paginator_factory'
|
||||||
$authorizationHelper: '@Chill\MainBundle\Security\Authorization\AuthorizationHelper'
|
|
||||||
tags: ['controller.service_arguments']
|
tags: ['controller.service_arguments']
|
||||||
|
|
||||||
Chill\PersonBundle\Controller\AccompanyingPeriodController:
|
Chill\PersonBundle\Controller\AccompanyingPeriodController:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user