4f: Enable autowiring
Enable autowiring so that the entity type manager is injected into the ArticleRepository service. This fails because the 'node' entity type doesn’t exist.
This commit is contained in:
parent
dcace271a2
commit
016512bf1b
1 changed files with 5 additions and 1 deletions
|
@ -1,2 +1,6 @@
|
||||||
services:
|
services:
|
||||||
Drupal\my_module\Repository\ArticleRepository: ~
|
Drupal\Core\Entity\EntityTypeManagerInterface:
|
||||||
|
alias: entity_type.manager
|
||||||
|
|
||||||
|
Drupal\my_module\Repository\ArticleRepository:
|
||||||
|
autowire: true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue