You are here

public function AuthenticationManager::__construct in RESTful 7.2

Constructs a new AuthenticationManager object.

Parameters

AuthenticationPluginManager $manager: The authentication plugin manager.

File

src/Authentication/AuthenticationManager.php, line 59
Contains \Drupal\restful\Authentication\AuthenticationManager

Class

AuthenticationManager
Class AuthenticationManager.

Namespace

Drupal\restful\Authentication

Code

public function __construct(AuthenticationPluginManager $manager = NULL, UserSessionStateInterface $user_session_state = NULL) {
  $this->plugins = new AuthenticationPluginCollection($manager ?: AuthenticationPluginManager::create());
  $this->userSessionState = $user_session_state ?: new UserSessionState();
}