class RestConfigSubscriber implements EventSubscriberInterface (View source)

A subscriber triggering a route rebuild when certain configuration changes.

Properties

protected RouteBuilderInterface $routerBuilder

The router builder.

Methods

__construct(RouteBuilderInterface $router_builder)

Constructs the RestConfigSubscriber.

onSave(ConfigCrudEvent $event)

Informs the router builder a rebuild is needed when necessary.

static 
getSubscribedEvents()

{@inheritdoc}

Details

__construct(RouteBuilderInterface $router_builder)

Constructs the RestConfigSubscriber.

Parameters

RouteBuilderInterface $router_builder

The router builder service.

onSave(ConfigCrudEvent $event)

Informs the router builder a rebuild is needed when necessary.

Parameters

ConfigCrudEvent $event

The Event to process.

static getSubscribedEvents()

{@inheritdoc}