You are here

public function Generator::__construct in Style Guide 8

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

Constructor.

File

src/Generator.php, line 50

Class

Generator
Class Generator.

Namespace

Drupal\styleguide

Code

public function __construct(RequestStack $request_stack, PagerManagerInterface $page_manager, ConfigFactoryInterface $config) {
  $this->currentRequest = $request_stack
    ->getCurrentRequest();
  $this->random = new Random();
  $this->pagerManager = $page_manager;
  $this->config = $config;
}