private function findIndexFiles() { $documentationDirectory = $this->documentationDirectory; $projectDocumentationDirectories = array_map(function ($directory) use($documentationDirectory) { return Path::directory($this->projectDirectory . $directory . $documentationDirectory); }, $this->libraryDirectories); $indexFiles = Finder::create()->in($projectDocumentationDirectories)->files()->name($this->indexFile); return $indexFiles; }
public function __construct($linksDirectory, Filesystem $filesystem) { $this->filesystem = $filesystem; $this->linksDirectory = Path::directory($linksDirectory); }