You are here

public function RouteSubscriber::__construct in RNG - Events and Registrations 8

Same name in this branch
  1. 8 src/Routing/RouteSubscriber.php \Drupal\rng\Routing\RouteSubscriber::__construct()
  2. 8 rng_debug/src/Routing/RouteSubscriber.php \Drupal\rng_debug\Routing\RouteSubscriber::__construct()
Same name and namespace in other branches
  1. 8.2 src/Routing/RouteSubscriber.php \Drupal\rng\Routing\RouteSubscriber::__construct()
  2. 3.x src/Routing/RouteSubscriber.php \Drupal\rng\Routing\RouteSubscriber::__construct()

Constructs a RouteSubscriber object.

Parameters

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.

\Drupal\rng\EventManagerInterface $event_manager: The RNG event manager.

File

src/Routing/RouteSubscriber.php, line 38

Class

RouteSubscriber
Dynamic RNG routes.

Namespace

Drupal\rng\Routing

Code

public function __construct(EntityManagerInterface $entity_manager, EventManagerInterface $event_manager) {
  $this->entityManager = $entity_manager;
  $this->eventManager = $event_manager;
}