/** * @param string[] $paths * * @return string[] */ function wildcardPathsToClassmap($paths) { // Attempt to load from cache. $cid = 'xautoload:wildcardPathsToClassmap:' . md5(serialize($paths)); $cache = $this->system->cacheGet($cid); if ($cache && isset($cache->data)) { return $cache->data; } // Resolve cache miss and save. $map = $this->decorated->wildcardPathsToClassmap($paths); $this->system->cacheSet($cid, $map); return $map; }
/** * {@inheritdoc} */ function addClassmapSources($paths) { $map = $this->classMapGenerator->wildcardPathsToClassmap($paths); $this->addClassMap($map); }