You are here

public function SinglePageSiteController::__construct in Single Page Site 8

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

SinglePageSiteController constructor.

Parameters

\Drupal\single_page_site\Manager\SinglePageSiteManager $manager: Manager value.

\Drupal\Core\Extension\ModuleHandler $module_handler: Module handler value.

\Drupal\Core\Render\RendererInterface $renderer: Renderer value.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: Event dispatcher value.

File

src/Controller/SinglePageSiteController.php, line 40

Class

SinglePageSiteController
Class SinglePageSiteController.

Namespace

Drupal\single_page_site\Controller

Code

public function __construct(SinglePageSiteManager $manager, ModuleHandler $module_handler, RendererInterface $renderer, EventDispatcherInterface $event_dispatcher) {
  $this->manager = $manager;
  $this->moduleHandler = $module_handler;
  $this->renderer = $renderer;
  $this->eventDispatcher = $event_dispatcher;
}