function SwitchUserController::create

Overrides ControllerBase::create

File

src/Controller/SwitchUserController.php, line 72

Class

SwitchUserController
Controller for switch to another user account.

Namespace

Drupal\devel\Controller

Code

public static function create(ContainerInterface $container) {
  return new static($container->get('current_user'), $container->get('entity_type.manager')
    ->getStorage('user'), $container->get('module_handler'), $container->get('session_manager'), $container->get('session'));
}