You are here

public function AuthenticationManager::addAllAuthenticationProviders in RESTful 7.2

Adds all the auth providers to the list.

Overrides AuthenticationManagerInterface::addAllAuthenticationProviders

File

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

Class

AuthenticationManager
Class AuthenticationManager.

Namespace

Drupal\restful\Authentication

Code

public function addAllAuthenticationProviders() {
  $manager = AuthenticationPluginManager::create();
  foreach ($manager
    ->getDefinitions() as $id => $plugin) {
    $this
      ->addAuthenticationProvider($id);
  }
}