protected function createPageFile(DirectoryPath $repositoryPath, DirectoryPath $directoryPath, SplFileInfo $file)
 {
     $pageFile = new PageFile($repositoryPath->toAbsoluteFileString(), $directoryPath->toRelativeFileString(), $file->getRelativePathName());
     $title = $this->elasticsearchRepository->getTitle($pageFile->getAbsolutePath());
     if (empty($title)) {
         $title = $pageFile->getRelativePath()->getFileName();
     }
     $pageFile->setTitle($title);
     return $pageFile;
 }