mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-14 14:24:24 +00:00
Use interface instead of concrete implementation.
This commit is contained in:
parent
1f488109e3
commit
11036e84f6
@ -40,6 +40,7 @@ use Symfony\Component\Console\Question\ConfirmationQuestion;
|
|||||||
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
|
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
|
||||||
use Symfony\Component\EventDispatcher\Event;
|
use Symfony\Component\EventDispatcher\Event;
|
||||||
use Symfony\Component\Form\FormFactory;
|
use Symfony\Component\Form\FormFactory;
|
||||||
|
use Symfony\Component\Form\FormFactoryInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class ImportPeopleFromCSVCommand
|
* Class ImportPeopleFromCSVCommand
|
||||||
@ -130,7 +131,7 @@ class ImportPeopleFromCSVCommand extends Command
|
|||||||
protected static $defaultDateInterpreter = "%d/%m/%Y|%e/%m/%y|%d/%m/%Y|%e/%m/%Y";
|
protected static $defaultDateInterpreter = "%d/%m/%Y|%e/%m/%y|%d/%m/%Y|%e/%m/%Y";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var FormFactory
|
* @var FormFactoryInterface
|
||||||
*/
|
*/
|
||||||
protected $formFactory;
|
protected $formFactory;
|
||||||
|
|
||||||
@ -142,7 +143,7 @@ class ImportPeopleFromCSVCommand extends Command
|
|||||||
* @param EntityManagerInterface $em
|
* @param EntityManagerInterface $em
|
||||||
* @param CustomFieldProvider $customFieldProvider
|
* @param CustomFieldProvider $customFieldProvider
|
||||||
* @param EventDispatcherInterface $eventDispatcher
|
* @param EventDispatcherInterface $eventDispatcher
|
||||||
* @param FormFactory $formFactory
|
* @param FormFactoryInterface $formFactory
|
||||||
*/
|
*/
|
||||||
public function __construct(
|
public function __construct(
|
||||||
LoggerInterface $logger,
|
LoggerInterface $logger,
|
||||||
@ -150,7 +151,7 @@ class ImportPeopleFromCSVCommand extends Command
|
|||||||
EntityManagerInterface $em,
|
EntityManagerInterface $em,
|
||||||
CustomFieldProvider $customFieldProvider,
|
CustomFieldProvider $customFieldProvider,
|
||||||
EventDispatcherInterface $eventDispatcher,
|
EventDispatcherInterface $eventDispatcher,
|
||||||
FormFactory $formFactory
|
FormFactoryInterface $formFactory
|
||||||
) {
|
) {
|
||||||
$this->logger = $logger;
|
$this->logger = $logger;
|
||||||
$this->helper = $helper;
|
$this->helper = $helper;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user