36 public function crawlFactory($factoryPath, Entry\ComponentEntry $parent = null, $depth = 0)
40 throw $this->ef->exception(
Exception\CrawlerException::CRAWL_MAX_NESTING_REACHED,
" Current Path: " . $factoryPath .
" Parent: " . $parent->getId());
42 $entries = $this->parser->parseEntriesFromFile($factoryPath);
44 $children =
new Entry\ComponentEntries();
46 foreach ($entries as $entry) {
47 if ($entry->isAbstract()) {
48 $children->addEntries($this->
crawlFactory($entry->getPath() .
".php", $entry, $depth));
51 $entry->setParent($parent->getId());
52 $parent->addChild($entry->getId());
55 $entries->addEntries($children);
__construct()
FactoryCrawler constructor.
crawlFactory($factoryPath, Entry\ComponentEntry $parent=null, $depth=0)
Starts with the factory indicated by factory path and crawles form this point all all subsequent fact...