function EventInfoController::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
-
src/
Controller/ EventInfoController.php, line 22
Class
- EventInfoController
- Provides route responses for the event info page.
Namespace
Drupal\devel\ControllerCode
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;
}