-
-
Notifications
You must be signed in to change notification settings - Fork 556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ console
] Replace usages of EntityTypeRepository
with EntityTypeRepositoryInterface
#3919
Comments
Note: we are specifically running into this issue because we are doing something similar to what is being done in https://www.drupal.org/project/entity_type_class. It is the Symfony Decorator Pattern being applied to |
Changes the type signatures for a few classes to use interfaces instead of classes.
PR Introduced: #3934 |
@aronbeal I have merged it. Thanks for contribution |
[
console
] Replace usages ofEntityTypeRepository
withEntityTypeRepositoryInterface
Problem/Motivation
A few classes rely on the injection of an
EntityTypeRepository
class, rather thanEntityTypeRepositoryInterface
, which precludes the replacement of these classes withSymfony decoration.
Details to include:
Need to generalize the passed objects to be interfaces rather than base class
instances for the following classes:
\Drupal\Console\Command\Generate\PluginConditionCommand::__construct()
\Drupal\Console\Command\Entity\DeleteCommand::__construct()
\Drupal\Console\Command\Debug\EntityCommand::__construct()
How to reproduce
N/A
Details to include:
Solution
drupal-console-constructor-fix.patch.txt
See attached patchfile:
The text was updated successfully, but these errors were encountered: