예제 #1
0
파일: Cached.php 프로젝트: bolt/filesystem
 /**
  * {@inheritdoc}
  */
 public function read($path)
 {
     $result = $this->cache->read($path);
     if ($result !== false && isset($result['contents']) && $result['contents'] !== false) {
         return $result;
     }
     $result = $this->getAdapter()->read($path);
     if ($result) {
         $object = $result + compact('path');
         $this->cache->updateObject($path, $object, true);
     }
     return $result;
 }