function DevelTestController::create

Overrides AutowireTrait::create

File

tests/modules/devel_test/src/Controller/DevelTestController.php, line 16

Class

DevelTestController
Returns responses for devel module routes.

Namespace

Drupal\devel_test\Controller

Code

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