You are here

schemata.services.yml in Schemata 8

File

schemata.services.yml
View source
  1. services:
  2. # Assemble Schemas based on entity type definitions. As a standalone class,
  3. # the SchemaFactory can be pulled in to custom menu routes, drush commands,
  4. # and REST plugins. The SchemaFactory::create() creates instances of
  5. # Drupal\schemata\Schema\SchemaInterface.
  6. schemata.schema_factory:
  7. class: Drupal\schemata\SchemaFactory
  8. arguments:
  9. - '@logger.channel.schemata'
  10. - '@entity_type.manager'
  11. - '@entity_type.bundle.info'
  12. - '@typed_data_manager'
  13. - '@config.typed'
  14. # Create a log channel for this module. This simplifies logging setup code in
  15. # this code that will do logging. As a tradeoff, it also adds this fairly
  16. # specific logging channel to the system for all requests.
  17. logger.channel.schemata:
  18. parent: logger.channel_base
  19. arguments: ['schemata']