You are here

public function MultipleRegistrationController::__construct in Multiple Registration 8

Same name and namespace in other branches
  1. 8.2 src/Controller/MultipleRegistrationController.php \Drupal\multiple_registration\Controller\MultipleRegistrationController::__construct()
  2. 3.x src/Controller/MultipleRegistrationController.php \Drupal\multiple_registration\Controller\MultipleRegistrationController::__construct()

MultipleRegistrationController constructor.

Parameters

\Drupal\multiple_registration\AvailableUserRolesService $availableUserRolesService: AvailableUserRoles Service.

\Drupal\Core\Config\ConfigFactoryInterface $configFactory: Config factory.

\Drupal\Core\Path\AliasManager $aliasManager: Alias manager.

\Drupal\Core\Routing\CurrentRouteMatch $routeMatch: RouteMatch service.

File

src/Controller/MultipleRegistrationController.php, line 48

Class

MultipleRegistrationController
Class MultipleRegistrationController.

Namespace

Drupal\multiple_registration\Controller

Code

public function __construct(AvailableUserRolesService $availableUserRolesService, ConfigFactoryInterface $configFactory, AliasManager $aliasManager, CurrentRouteMatch $routeMatch) {
  $this->regPagesConfig = $configFactory
    ->getEditable('multiple_registration.create_registration_page_form_config');
  $this->availableUserRolesService = $availableUserRolesService;
  $this->aliasManager = $aliasManager;
  $this->routeMatch = $routeMatch;
}