You are here

public function SearchController::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/search/src/Controller/SearchController.php \Drupal\search\Controller\SearchController::__construct()

Constructs a new search controller.

Parameters

\Drupal\search\SearchPageRepositoryInterface $search_page_repository: The search page repository.

\Psr\Log\LoggerInterface $logger: A logger instance.

\Drupal\Core\Render\RendererInterface $renderer: The renderer.

File

core/modules/search/src/Controller/SearchController.php, line 55
Contains \Drupal\search\Controller\SearchController.

Class

SearchController
Route controller for search.

Namespace

Drupal\search\Controller

Code

public function __construct(SearchPageRepositoryInterface $search_page_repository, LoggerInterface $logger, RendererInterface $renderer) {
  $this->searchPageRepository = $search_page_repository;
  $this->logger = $logger;
  $this->renderer = $renderer;
}