You are here

public function StyleguideController::__construct in Style Guide 8

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

Constructs a new StyleguideController.

Parameters

\Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: The theme handler service.

\Drupal\styleguide\StyleguidePluginManager $styleguide_manager: The Styleguide plugin manager.

\Drupal\Core\Theme\ThemeManagerInterface $theme_manager: The theme manager service.

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

File

src/Controller/StyleguideController.php, line 59

Class

StyleguideController
The Styleguide controller.

Namespace

Drupal\styleguide\Controller

Code

public function __construct(ThemeHandlerInterface $theme_handler, StyleguidePluginManager $styleguide_manager, ThemeManagerInterface $theme_manager, RequestStack $request_stack) {
  $this->themeHandler = $theme_handler;
  $this->styleguideManager = $styleguide_manager;
  $this->themeManager = $theme_manager;
  $this->requestStack = $request_stack;
}