You are here

public function StaticGenerator::__construct in Tome 8

Creates a StaticGenerator object.

Parameters

\Symfony\Component\HttpKernel\HttpKernelInterface $http_kernel: The HTTP kernel.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.

\Drupal\tome_static\StaticCacheInterface $cache: The static cache.

\Drupal\Core\Session\AccountSwitcherInterface $account_switcher: The account switcher.

\Drupal\Core\File\FileSystemInterface $file_system: The file system.

File

modules/tome_static/src/StaticGenerator.php, line 101

Class

StaticGenerator
Handles static site generation.

Namespace

Drupal\tome_static

Code

public function __construct(HttpKernelInterface $http_kernel, RequestStack $request_stack, EventDispatcherInterface $event_dispatcher, StaticCacheInterface $cache, AccountSwitcherInterface $account_switcher, FileSystemInterface $file_system) {
  $this->httpKernel = $http_kernel;
  $this->currentRequest = $request_stack
    ->getCurrentRequest();
  $this->eventDispatcher = $event_dispatcher;
  $this->cache = $cache;
  $this->accountSwitcher = $account_switcher;
  $this->requestStack = $request_stack;
  $this->fileSystem = $file_system;
}