You are here

public function RestConfigSubscriber::__construct in Drupal 8

Constructs the RestConfigSubscriber.

Parameters

\Drupal\Core\Routing\RouteBuilderInterface $router_builder: The router builder service.

File

core/modules/rest/src/EventSubscriber/RestConfigSubscriber.php, line 28

Class

RestConfigSubscriber
A subscriber triggering a route rebuild when certain configuration changes.

Namespace

Drupal\rest\EventSubscriber

Code

public function __construct(RouteBuilderInterface $router_builder) {
  $this->routerBuilder = $router_builder;
}