function EventInfoController::create

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

Overrides AutowireTrait::create

File

src/Controller/EventInfoController.php, line 22

Class

EventInfoController
Provides route responses for the event info page.

Namespace

Drupal\devel\Controller

Code

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