Add an alias for the entity type manager

Remove deprecation warnings

Fixes #12
This commit is contained in:
Oliver Davies 2020-03-19 23:21:02 +00:00
parent f38ca67efb
commit a1529f22d7

View file

@ -651,6 +651,9 @@ The quickest way to do that is to enable autowiring for the ArticleRepository wi
```diff ```diff
- Drupal\my_module\Repository\ArticleRepository: ~ - Drupal\my_module\Repository\ArticleRepository: ~
+ Drupal\Core\Entity\EntityTypeManagerInterface:
+ alias: entity_type.manager
+
+ Drupal\my_module\Repository\ArticleRepository: + Drupal\my_module\Repository\ArticleRepository:
+ autowire: true + autowire: true
``` ```