Beispiel #1
0
 /**
  * Build the cache
  * 
  * @return void
  */
 public function build()
 {
     $files = $this->filesystem->listFiles($this->directory, $this->recursive);
     $this->cache->clear();
     foreach ($files as $file) {
         $entity = $this->parseFile($file);
         if ($entity != null) {
             $this->cache->put($entity->getIdentifier(), $entity);
         }
     }
     $this->cache->persist();
 }
Beispiel #2
0
 /**
  * Update the in memory values
  * 
  * @return void
  */
 protected function updateValues()
 {
     $this->values = $this->cache->all();
 }