public function testIsAutoGenerateSnapshots()
 {
     $config = new Configuration(array('auto_generate_snapshots' => true));
     $this->assertTrue($config->isAutoGenerateSnapshots());
 }
Example #2
0
 /**
  * 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;
     }
 }