You are here

public function RestfulAuthenticationManager::addAuthenticationProvider in RESTful 7

Adds the auth provider to the list.

Parameters

\RestfulAuthenticationInterface $provider: The authentication plugin object.

File

plugins/authentication/RestfulAuthenticationManager.php, line 61
Contains RestfulAuthenticationManager.

Class

RestfulAuthenticationManager
@file Contains RestfulAuthenticationManager.

Code

public function addAuthenticationProvider(RestfulAuthenticationInterface $provider) {
  $this
    ->offsetSet($provider
    ->getName(), $provider);
}