function DumperTestController::create

Instantiates a new instance of the implementing class using autowiring.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: The service container this instance should use.

Return value

static

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