public function load() { $this->item = unserialize(File::read($this->getPath())); if (!$this->item instanceof CacheItem) { $this->item = null; throw new CorruptedDataException(); } }
public function load() { $this->item = unserialize(File::read($this->getPath())); if (!$this->item instanceof CacheItem) { $this->item = null; throw new CorruptedDataException(); } }