onConfigReload method
Called when the application configuration is reloaded.
Providers overriding this hook can re-apply configuration without manually subscribing to ConfigReloadedEvent.
Implementation
@override
Future<void> onConfigReload(Container container, Config config) async {
if (container.has<EventManager>()) {
_eventManager = await container.make<EventManager>();
}
final engine = container.has<Engine>() ? container.get<Engine>() : null;
_applyConfig(config, engine: engine, eventManager: _eventManager);
}