You are here

public function AgreementHandler::__construct in Agreement 3.0.x

Same name and namespace in other branches
  1. 8.2 src/AgreementHandler.php \Drupal\agreement\AgreementHandler::__construct()

Initialize method.

Parameters

\Drupal\Core\Database\Connection $connection: The database connection.

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager.

\Drupal\Core\Path\PathMatcherInterface $pathMatcher: The path matcher service.

\Drupal\Component\Datetime\TimeInterface $time: The datetime.time service.

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

File

src/AgreementHandler.php, line 76

Class

AgreementHandler
Agreement handler provides methods for looking up agreements.

Namespace

Drupal\agreement

Code

public function __construct(Connection $connection, EntityTypeManagerInterface $entityTypeManager, PathMatcherInterface $pathMatcher, TimeInterface $time, RequestStack $requestStack) {
  $this->connection = $connection;
  $this->entityTypeManager = $entityTypeManager;
  $this->pathMatcher = $pathMatcher;
  $this->time = $time;
  $this->requestStack = $requestStack;
}