You are here

public function PWAController::__construct in Progressive Web App 8

Same name and namespace in other branches
  1. 2.x src/Controller/PWAController.php \Drupal\pwa\Controller\PWAController::__construct()

Constructor.

Parameters

\Drupal\pwa\ManifestInterface $manifest: The manifest service.

\Drupal\Core\State\StateInterface $state: The system state.

\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler:

File

src/Controller/PWAController.php, line 56
Replace values in serviceworker.js

Class

PWAController
Default controller for the pwa module.

Namespace

Drupal\pwa\Controller

Code

public function __construct(ManifestInterface $manifest, StateInterface $state, ModuleHandlerInterface $moduleHandler) {
  $this->manifest = $manifest;
  $this->state = $state;
  $this->moduleHandler = $moduleHandler;
}