function DumperTestController::create

Same name in other branches
  1. 4.x tests/modules/devel_dumper_test/src/Controller/DumperTestController.php \Drupal\devel_dumper_test\Controller\DumperTestController::create()

Overrides AutowireTrait::create

File

tests/modules/devel_dumper_test/src/Controller/DumperTestController.php, line 24

Class

DumperTestController
Controller class for dumper_test module.

Namespace

Drupal\devel_dumper_test\Controller

Code

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