protected function parseImports($content, $file)
{
if (!isset($content['imports'])) {
return $content;
}
foreach ($content['imports'] as $import) {
$this->setCurrentDir(dirname($file));
$content = ArrayUtils::merge($this->import($import['resource'], null, isset($import['ignore_errors']) ? (bool) $import['ignore_errors'] : false, $file), $content);
}
unset($content['imports']);
return $content;
}