ConfigSnapshotSubscriber
class ConfigSnapshotSubscriber implements EventSubscriberInterface (View source)
Create a snapshot when config is imported.
Properties
| protected ConfigManagerInterface | $configManager | The configuration manager. |
|
| protected StorageInterface | $sourceStorage | The source storage used to discover configuration changes. |
|
| protected StorageInterface | $snapshotStorage | The snapshot storage used to write configuration changes. |
Methods
__construct(ConfigManagerInterface $config_manager, StorageInterface $source_storage, StorageInterface $snapshot_storage)
Constructs the ConfigSnapshotSubscriber object.
static array
getSubscribedEvents()
Registers the methods in this class that should be listeners.
Details
__construct(ConfigManagerInterface $config_manager, StorageInterface $source_storage, StorageInterface $snapshot_storage)
Constructs the ConfigSnapshotSubscriber object.
onConfigImporterImport(ConfigImporterEvent $event)
Creates a config snapshot.
static array
getSubscribedEvents()
Registers the methods in this class that should be listeners.