function SystemTestController::create

Same name in other branches
  1. 8.9.x core/modules/system/tests/modules/system_test/src/Controller/SystemTestController.php \Drupal\system_test\Controller\SystemTestController::create()

Overrides ControllerBase::create

File

core/modules/system/tests/modules/system_test/src/Controller/SystemTestController.php, line 85

Class

SystemTestController
Controller routines for system_test routes.

Namespace

Drupal\system_test\Controller

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('lock'), $container->get('lock.persistent'), $container->get('current_user'), $container->get('renderer'), $container->get('messenger'));
}

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