Пример #1
0
 private function loadConfigDirs()
 {
     $context = new ExtractionContext();
     $destination = new StringQuadDestination();
     $destinations = new SingletonQuadDestinations($destination);
     $context->setDestinations($destinations);
     // TODO: load redirects
     $redirects = new Redirect();
     $context->setRedirects($redirects);
     $ontology = $this->loadOntology();
     $extractor = $this->loadMappings($ontology, $context);
     $configHolder = new ConfigHolder($ontology, $extractor, $destinations);
     return $configHolder;
 }