You are here

public function EventAnEnrollService::__construct in Open Social 10.1.x

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_event/modules/social_event_an_enroll/src/EventAnEnrollService.php \Drupal\social_event_an_enroll\EventAnEnrollService::__construct()
  2. 8.5 modules/social_features/social_event/modules/social_event_an_enroll/src/EventAnEnrollService.php \Drupal\social_event_an_enroll\EventAnEnrollService::__construct()
  3. 8.6 modules/social_features/social_event/modules/social_event_an_enroll/src/EventAnEnrollService.php \Drupal\social_event_an_enroll\EventAnEnrollService::__construct()
  4. 8.7 modules/social_features/social_event/modules/social_event_an_enroll/src/EventAnEnrollService.php \Drupal\social_event_an_enroll\EventAnEnrollService::__construct()
  5. 8.8 modules/social_features/social_event/modules/social_event_an_enroll/src/EventAnEnrollService.php \Drupal\social_event_an_enroll\EventAnEnrollService::__construct()
  6. 10.3.x modules/social_features/social_event/modules/social_event_an_enroll/src/EventAnEnrollService.php \Drupal\social_event_an_enroll\EventAnEnrollService::__construct()
  7. 10.0.x modules/social_features/social_event/modules/social_event_an_enroll/src/EventAnEnrollService.php \Drupal\social_event_an_enroll\EventAnEnrollService::__construct()
  8. 10.2.x modules/social_features/social_event/modules/social_event_an_enroll/src/EventAnEnrollService.php \Drupal\social_event_an_enroll\EventAnEnrollService::__construct()

EventAnEnrollService constructor.

Parameters

\Drupal\Core\Session\AccountProxyInterface $account_proxy: Account proxy.

\Drupal\Core\Routing\CurrentRouteMatch $current_route_match: Current route match.

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

File

modules/social_features/social_event/modules/social_event_an_enroll/src/EventAnEnrollService.php, line 45

Class

EventAnEnrollService
Class EventAnEnrollService.

Namespace

Drupal\social_event_an_enroll

Code

public function __construct(AccountProxyInterface $account_proxy, CurrentRouteMatch $current_route_match, Connection $connection) {
  $this->currentUser = $account_proxy;
  $this->currentRouteMatch = $current_route_match;
  $this->database = $connection;
}