openquestions-1.0.x-dev/openquestions.services.yml
openquestions.services.yml
services:
openquestions.logger.channel.openquestions:
parent: logger.channel_base
arguments: ['openquestions']
openquestions.oq_vote_data_factory:
class: Drupal\openquestions\Service\VoteDataFactory
arguments: ['@config.factory', '@entity_type.manager', '@openquestions.logger.channel.openquestions']
openquestions.oq_utils:
class: Drupal\openquestions\Service\OQUtils
arguments: ['@string_translation', '@openquestions.logger.channel.openquestions']
openquestions.openquestions_item_route_context:
class: Drupal\openquestions\ContextProvider\OQItemRouteContext
arguments: ['@current_route_match']
tags:
- { name: 'context_provider' }
openquestions.openquestions_application_route_context:
class: Drupal\openquestions\ContextProvider\OQApplicationRouteContext
arguments: ['@current_route_match']
tags:
- { name: 'context_provider' }
openquestions.oq_vote_event_subscriber:
class: \Drupal\openquestions\EventSubscriber\OQVoteEventSubscriber
arguments: ['@config.factory', '@entity_type.manager', '@openquestions.oq_utils', '@datetime.time', '@string_translation', '@openquestions.logger.channel.openquestions']
tags:
- { name: event_subscriber }
