function UserController::create

Same name in other branches
  1. 9 core/modules/user/src/Controller/UserController.php \Drupal\user\Controller\UserController::create()
  2. 8.9.x core/modules/user/src/Controller/UserController.php \Drupal\user\Controller\UserController::create()
  3. 10 core/modules/user/src/Controller/UserController.php \Drupal\user\Controller\UserController::create()

Overrides AutowireTrait::create

1 call to UserController::create()
UserControllerTest::setUp in core/modules/user/tests/src/Kernel/Controller/UserControllerTest.php

File

core/modules/user/src/Controller/UserController.php, line 96

Class

UserController
Controller routines for user routes.

Namespace

Drupal\user\Controller

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('date.formatter'), $container->get('entity_type.manager')
        ->getStorage('user'), $container->get('user.data'), $container->get('logger.factory')
        ->get('user'), $container->get('flood'), $container->get('datetime.time'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.