fix: Autowire and autoconfigure services in chill_main.

This commit is contained in:
Pol Dellaiera
2021-11-17 20:31:20 +01:00
parent d830b19756
commit d7fbbbf92c
23 changed files with 92 additions and 115 deletions

View File

@@ -1,11 +1,9 @@
services:
_defaults:
autowire: true
autoconfigure: true
Chill\MainBundle\Command\ChillImportUsersCommand:
arguments:
$em: '@Doctrine\ORM\EntityManagerInterface'
$logger: '@Psr\Log\LoggerInterface'
$passwordEncoder: '@Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface'
$validator: '@Symfony\Component\Validator\Validator\ValidatorInterface'
$userRepository: '@Chill\MainBundle\Repository\UserRepository'
tags:
- { name: console.command }