You are here

public static function SimplesamlphpAuthController::create in simpleSAMLphp Authentication 8.3

Instantiates a new instance of this class.

This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: The service container this instance should use.

Overrides ControllerBase::create

File

src/Controller/SimplesamlphpAuthController.php, line 114

Class

SimplesamlphpAuthController
Controller routines for simplesamlphp_auth routes.

Namespace

Drupal\simplesamlphp_auth\Controller

Code

public static function create(ContainerInterface $container) {
  return new static($container
    ->get('simplesamlphp_auth.manager'), $container
    ->get('simplesamlphp_auth.drupalauth'), $container
    ->get('url_generator'), $container
    ->get('request_stack'), $container
    ->get('current_user'), $container
    ->get('path.validator'), $container
    ->get('logger.factory')
    ->get('simplesamlphp_auth'), $container
    ->get('config.factory'));
}