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 {
EventManager? eventManager;
if (container.has<EventManager>()) {
eventManager = await container.make<EventManager>();
}
if (_ownsManagedManager) {
_managedManager = _applyCacheConfig(
container,
config,
eventManager: eventManager,
);
return;
}
if (container.has<CacheManager>()) {
final manager = await container.make<CacheManager>();
_applyCachePrefixFromConfig(manager, config);
}
}