You are here

public static function PathTranslator::create in Decoupled Router 8

Same name and namespace in other branches
  1. 2.x src/Controller/PathTranslator.php \Drupal\decoupled_router\Controller\PathTranslator::create()

Create function for dependency injection.

Overrides ControllerBase::create

File

src/Controller/PathTranslator.php, line 52

Class

PathTranslator
Controller that receives the path to inspect.

Namespace

Drupal\decoupled_router\Controller

Code

public static function create(ContainerInterface $container) {
  return new static($container
    ->get('event_dispatcher'), $container
    ->get('http_kernel'));
}