Auto-configure services and repositories
Enable the auto-configuration of service and repository classes, including support for classes in subdirectories by using `getRelativePathname()` rather than `getFilename()` and making some additional changes to the result. References #347
This commit is contained in:
parent
f6791516c5
commit
53ab326415
9 changed files with 183 additions and 26 deletions
|
@ -1,6 +1,12 @@
|
|||
parameters:
|
||||
container.autowiring.strict_mode: true
|
||||
|
||||
services:
|
||||
Drupal\Core\Entity\EntityTypeManagerInterface:
|
||||
alias: entity_type.manager
|
||||
|
||||
Drupal\opdavies_blog\Service\PostPusher\PostPusher:
|
||||
alias: Drupal\opdavies_blog\Service\PostPusher\NullPostPusher
|
||||
class: Drupal\opdavies_blog\Service\PostPusher\NullPostPusher
|
||||
|
||||
Drupal\opdavies_blog_test\Factory\PostFactory:
|
||||
autowire: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue