Skip to content
Permalink
Browse files

Changes constructor type signatures (#3919) (#3934)

Changes the type signatures for a few classes to use interfaces instead of classes.
  • Loading branch information...
aronbeal authored and LOBsTerr committed Sep 26, 2018
1 parent d1adc9d commit 37730ce0f8f5226fbab5dab025d47b1d92e33a35
@@ -10,13 +10,13 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Drupal\Console\Core\Command\Command;
use Drupal\Core\Entity\EntityTypeRepository;
use Drupal\Core\Entity\EntityTypeRepositoryInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
class EntityCommand extends Command
{
/**
* @var EntityTypeRepository
* @var EntityTypeRepositoryInterface
*/
protected $entityTypeRepository;
@@ -28,11 +28,11 @@ class EntityCommand extends Command
/**
* EntityCommand constructor.
*
* @param EntityTypeRepository $entityTypeRepository
* @param EntityTypeManagerInterface $entityTypeManager
* @param EntityTypeRepositoryInterface $entityTypeRepository
* @param EntityTypeManagerInterface $entityTypeManager
*/
public function __construct(
EntityTypeRepository $entityTypeRepository,
EntityTypeRepositoryInterface $entityTypeRepository,
EntityTypeManagerInterface $entityTypeManager
) {
$this->entityTypeRepository = $entityTypeRepository;
@@ -11,13 +11,13 @@
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Drupal\Console\Core\Command\Command;
use Drupal\Core\Entity\EntityTypeRepository;
use Drupal\Core\Entity\EntityTypeRepositoryInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
class DeleteCommand extends Command
{
/**
* @var EntityTypeRepository
* @var EntityTypeRepositoryInterface
*/
protected $entityTypeRepository;
@@ -29,11 +29,11 @@ class DeleteCommand extends Command
/**
* DeleteCommand constructor.
*
* @param EntityTypeRepository $entityTypeRepository
* @param EntityTypeManagerInterface $entityTypeManager
* @param EntityTypeRepositoryInterface $entityTypeRepository
* @param EntityTypeManagerInterface $entityTypeManager
*/
public function __construct(
EntityTypeRepository $entityTypeRepository,
EntityTypeRepositoryInterface $entityTypeRepository,
EntityTypeManagerInterface $entityTypeManager
) {
$this->entityTypeRepository = $entityTypeRepository;
@@ -12,7 +12,7 @@
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Drupal\Console\Core\Command\Command;
use Drupal\Core\Entity\EntityTypeRepository;
use Drupal\Core\Entity\EntityTypeRepositoryInterface;
use Drupal\Console\Generator\PluginConditionGenerator;
use Drupal\Console\Command\Shared\ModuleTrait;
use Drupal\Console\Command\Shared\ConfirmationTrait;
@@ -59,18 +59,18 @@ class PluginConditionCommand extends Command
/**
* PluginConditionCommand constructor.
*
* @param Manager $extensionManager
* @param PluginConditionGenerator $generator
* @param ChainQueue $chainQueue
* @param EntityTypeRepository $entitytyperepository
* @param StringConverter $stringConverter
* @param Validator $validator
* @param Manager $extensionManager
* @param PluginConditionGenerator $generator
* @param ChainQueue $chainQueue
* @param EntityTypeRepositoryInterface $entitytyperepository
* @param StringConverter $stringConverter
* @param Validator $validator
*/
public function __construct(
Manager $extensionManager,
PluginConditionGenerator $generator,
ChainQueue $chainQueue,
EntityTypeRepository $entitytyperepository,
EntityTypeRepositoryInterface $entitytyperepository,
StringConverter $stringConverter,
Validator $validator
) {

0 comments on commit 37730ce

Please sign in to comment.
You can’t perform that action at this time.