You are here

public function CoffeeController::__construct in Coffee 8

Constructs a new CoffeeController object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.

\Drupal\Core\Menu\MenuLinkTreeInterface $menu_link_tree: The menu link tree service.

\Drupal\Core\Menu\LocalTaskManagerInterface $local_task_manager: The local task manager service.

\Drupal\Core\Access\AccessManagerInterface $access_manager: The access manager service.

File

src/Controller/CoffeeController.php, line 76

Class

CoffeeController
Provides route responses for coffee.module.

Namespace

Drupal\coffee\Controller

Code

public function __construct(ConfigFactoryInterface $config_factory, MenuLinkTreeInterface $menu_link_tree, LocalTaskManagerInterface $local_task_manager, AccessManagerInterface $access_manager, UrlGeneratorInterface $url_generator, RouteMatchInterface $route_match) {
  $this->config = $config_factory
    ->get('coffee.configuration');
  $this->menuLinkTree = $menu_link_tree;
  $this->localTaskManager = $local_task_manager;
  $this->accessManager = $access_manager;
  $this->urlGenerator = $url_generator;
  $this->routeMatch = $route_match;
}