public function testIsSnapshotLookup() { $config = new Configuration(array('snapshot_lookup' => true)); $this->assertTrue($config->isSnapshotLookup()); }
/** * Construct * * @param Configuration $config */ public function __construct(Configuration $config) { $this->adapter = $config->getAdapter(); $this->lookupSnapshots = $config->isSnapshotLookup(); $this->autoGenerateSnapshots = $config->isAutoGenerateSnapshots(); $this->snapshotInterval = $config->getSnapshotInterval(); $this->repositoryMap = $config->getRepositoryMap(); $this->eventDispatcher = $config->getEventDispatcher(); if ($this->autoGenerateSnapshots) { $this->lookupSnapshots = true; } }