Use interface instead of concrete implementation.

This commit is contained in:
Pol Dellaiera
2021-05-06 14:39:41 +02:00
parent 1f488109e3
commit 11036e84f6

View File

@@ -40,6 +40,7 @@ use Symfony\Component\Console\Question\ConfirmationQuestion;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\EventDispatcher\Event;
use Symfony\Component\Form\FormFactory;
use Symfony\Component\Form\FormFactoryInterface;
/**
* 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";
/**
* @var FormFactory
* @var FormFactoryInterface
*/
protected $formFactory;
@@ -142,7 +143,7 @@ class ImportPeopleFromCSVCommand extends Command
* @param EntityManagerInterface $em
* @param CustomFieldProvider $customFieldProvider
* @param EventDispatcherInterface $eventDispatcher
* @param FormFactory $formFactory
* @param FormFactoryInterface $formFactory
*/
public function __construct(
LoggerInterface $logger,
@@ -150,7 +151,7 @@ class ImportPeopleFromCSVCommand extends Command
EntityManagerInterface $em,
CustomFieldProvider $customFieldProvider,
EventDispatcherInterface $eventDispatcher,
FormFactory $formFactory
FormFactoryInterface $formFactory
) {
$this->logger = $logger;
$this->helper = $helper;