protected function parseIncludes(array $content, $file)
{
foreach ($content as $key => $value) {
if (is_array($value)) {
$content[$key] = $this->parseIncludes($value, $file);
}
if ('@include' === trim($key)) {
$this->setCurrentDir(dirname($file));
unset($content[$key]);
$content = array_replace_recursive($content, $this->import($value, null, false, $file));
}
}
return $content;
}