Add an alias for the entity type manager
Remove deprecation warnings Fixes #12
This commit is contained in:
parent
f38ca67efb
commit
a1529f22d7
|
@ -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
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue