function RouteInfoController::create

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

Overrides AutowireTrait::create

File

src/Controller/RouteInfoController.php, line 38

Class

RouteInfoController
Provides route responses for the route info pages.

Namespace

Drupal\devel\Controller

Code

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