Example #1
0
 /**
  * @param string $xmlFile
  * @return Project
  */
 public function map($xmlFile)
 {
     $content = $this->loadXmlFile($xmlFile);
     $project = new Project(realpath(dirname($xmlFile)));
     $project->setSources($this->mapSources(isset($content['sources']) ? $content['sources'] : []));
     return $project;
 }