script import utilisateurs

This commit is contained in:
2018-08-20 11:26:30 +02:00
parent b1592b3884
commit 900a384597
6 changed files with 485 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
Chill\MainBundle\Entity\User:
type: entity
table: users
repositoryClass: Chill\MainBundle\Repository\UserRepository
cache:
usage: NONSTRICT_READ_WRITE
region: acl_cache_region

View File

@@ -0,0 +1,10 @@
services:
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'
tags:
- { name: console.command }