You are here

public function WSDataService::__construct in Web Service Data 2.0.x

Same name and namespace in other branches
  1. 8 src/WSDataService.php \Drupal\wsdata\WSDataService::__construct()

File

src/WSDataService.php, line 35

Class

WSDataService
Service for processing WSData requests.

Namespace

Drupal\wsdata

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, State $state, LoggerChannelFactoryInterface $logger, MessengerInterface $messenger) {
  $this->entity_type_manager = $entity_type_manager;
  $this->state = $state;
  $this->logger = $logger;
  $this->messenger = $messenger;
  $this->performance = [
    'calls' => 0,
    'runtime' => 0.0,
    'log' => [],
  ];
  $this->status = [];
}