public function SimplesamlphpAuthManager::__construct in simpleSAMLphp Authentication 8.3
Constructor for SimplesamlphpAuthManager.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.
\Drupal\Core\Session\AccountInterface $current_user: The current user.
\Drupal\Core\Routing\AdminContext $admin_context: The route admin context to determine whether the route is an admin one.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.
\SimpleSAML\Auth\Simple $instance: Simple instance.
\SimpleSAML\Configuration $config: \SimpleSAML\Configuration instance.
File
- src/
Service/ SimplesamlphpAuthManager.php, line 107
Class
- SimplesamlphpAuthManager
- Service to interact with the SimpleSAMLPHP authentication library.
Namespace
Drupal\simplesamlphp_auth\ServiceCode
public function __construct(ConfigFactoryInterface $config_factory, AccountInterface $current_user, AdminContext $admin_context, ModuleHandlerInterface $module_handler, RequestStack $request_stack, MessengerInterface $messenger, Simple $instance = NULL, Configuration $config = NULL) {
$this->config = $config_factory
->get('simplesamlphp_auth.settings');
$this->currentUser = $current_user;
$this->adminContext = $admin_context;
$this->moduleHandler = $module_handler;
$this->requestStack = $request_stack;
$this->messenger = $messenger;
$this->instance = $instance;
$this->simplesamlConfig = $config;
}