public function importFootprints()
{
$path = $this->kernel->locateResource(self::FOOTPRINT_PATH . self::FOOTPRINT_DATA);
$skipped = 0;
$count = 0;
$yaml = new Parser();
$data = $yaml->parse(file_get_contents($path));
foreach ($data as $footprintName => $footprintData) {
if ($this->footprintExists($footprintName)) {
$skipped++;
continue;
}
$this->createFootprint($footprintName, $footprintData);
$count++;
}
$this->entityManager->flush();
return ['skipped' => $skipped, 'imported' => $count];
}