function ContainerInfoController::create

Same name in other branches
  1. 4.x src/Controller/ContainerInfoController.php \Drupal\devel\Controller\ContainerInfoController::create()

Overrides AutowireTrait::create

File

src/Controller/ContainerInfoController.php, line 32

Class

ContainerInfoController
Provides route responses for the container info pages.

Namespace

Drupal\devel\Controller

Code

public static function create(ContainerInterface $container) : static {
    $instance = parent::create($container);
    $instance->kernel = $container->get('kernel');
    $instance->dumper = $container->get('devel.dumper');
    $instance->stringTranslation = $container->get('string_translation');
    return $instance;
}