function UserController::create

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

Overrides ControllerBase::create

File

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

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'));
}

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