public function Search404Controller::__construct in Search 404 8
Same name and namespace in other branches
- 2.x src/Controller/Search404Controller.php \Drupal\search404\Controller\Search404Controller::__construct()
Constructor for search404controller.
Parameters
\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: Inject the logger channel factory interface.
File
- src/
Controller/ Search404Controller.php, line 40
Class
- Search404Controller
- Route controller for search.
Namespace
Drupal\search404\ControllerCode
public function __construct(LoggerChannelFactoryInterface $logger_factory, MessengerInterface $messenger) {
$this->logger = $logger_factory
->get('search404');
$this->messenger = $messenger;
}