You are here

public function Negotiator::__construct in Consumers 8

Instantiates a new Negotiator object.

File

src/Negotiator.php, line 46

Class

Negotiator
Extracts the consumer information from the given context.

Namespace

Drupal\consumers

Code

public function __construct(RequestStack $request_stack, EntityRepositoryInterface $entity_repository) {
  $this->requestStack = $request_stack;
  $this->entityRepository = $entity_repository;
}