/** * Serve a file * * @param string $file * @param int $directoryId * @return bool */ protected function serveFile(string $file, int $directoryId) : bool { $page = $this->pages->getPage($file, $directoryId); if (!empty($page)) { return $this->serveLatestVersion($page); } return false; }