You are here

public function TypeLinkManager::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/rest/src/LinkManager/TypeLinkManager.php \Drupal\rest\LinkManager\TypeLinkManager::__construct()

Constructor.

Parameters

\Drupal\Core\Cache\CacheBackendInterface $cache: The injected cache backend for caching type URIs.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.

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

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

File

core/modules/rest/src/LinkManager/TypeLinkManager.php, line 44
Contains \Drupal\rest\LinkManager\TypeLinkManager.

Class

TypeLinkManager

Namespace

Drupal\rest\LinkManager

Code

public function __construct(CacheBackendInterface $cache, ModuleHandlerInterface $module_handler, ConfigFactoryInterface $config_factory, RequestStack $request_stack) {
  $this->cache = $cache;
  $this->configFactory = $config_factory;
  $this->moduleHandler = $module_handler;
  $this->requestStack = $request_stack;
}