You are here

public static function SamlController::create in SAML Authentication 8

Same name and namespace in other branches
  1. 8.3 src/Controller/SamlController.php \Drupal\samlauth\Controller\SamlController::create()
  2. 8.2 src/Controller/SamlController.php \Drupal\samlauth\Controller\SamlController::create()
  3. 4.x src/Controller/SamlController.php \Drupal\samlauth\Controller\SamlController::create()

Factory method for dependency injection container.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container:

Return value

static

Overrides ControllerBase::create

File

src/Controller/SamlController.php, line 52
Contains Drupal\samlauth\Controller\SamlController.

Class

SamlController
Class SamlController.

Namespace

Drupal\samlauth\Controller

Code

public static function create(ContainerInterface $container) {
  return new static($container
    ->get('samlauth.saml'), $container
    ->get('samlauth.saml_user'));
}