/** * Set the state of the manager from the cache * * @return bool was the cache loaded? */ public function loadCache() { $spec = $this->getSpec(); if ($spec) { // the cached class map will have the full scanned core classes, so // don't consider the earlier mappings as "altering" the map $this->loader->getClassMap()->setMap($spec[self::KEY_CLASSES])->setAltered(false); $this->scannedDirs = $spec[self::KEY_SCANNED_DIRS]; return true; } $this->altered = true; return false; }