You are here

public function WorkspaceManager::__construct in Multiversion 8

Parameters

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

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager:

\Drupal\Core\Session\AccountProxyInterface $current_user:

\Psr\Log\LoggerInterface $logger:

File

src/Workspace/WorkspaceManager.php, line 57

Class

WorkspaceManager

Namespace

Drupal\multiversion\Workspace

Code

public function __construct(RequestStack $request_stack, EntityTypeManagerInterface $entity_type_manager, AccountProxyInterface $current_user, LoggerInterface $logger = NULL) {
  $this->requestStack = $request_stack;
  $this->entityTypeManager = $entity_type_manager;
  $this->currentUser = $current_user;
  $this->logger = $logger ?: new NullLogger();
}