/** * Loads a source file. * * @param string $page The page to load. * @return SourceFile */ public function getSourceFile($page) { $path = realpath($this->generator->getInputDirectory() . '/' . $page . '.xml'); return new SourceFile($page, $path); }
private function loadPageManager(Generator $generator) { $config = $generator->getConfig(); // Initialize the page manager: $manager = $generator->getPageManager(); $manager->getQueue()->enqueue($config->getMaster()); // Make sure that all TOC entries are part of the builder: foreach ($config->getToc() as $entry) { $manager->getQueue()->enqueue($entry); } return $manager; }