$definitions =
[];
// Use array_reverse to compile the bare themes first.
foreach (array_reverse($inheritance) as $shopTemplate) { $definition =
new LessDefinition();
$definition->
setImportDirectory( $this->pathResolver->
getPublicDirectory($shopTemplate) );
$definition->
setFiles([ $this->pathResolver->
getThemeLessFile($shopTemplate),
]);
$definition->
setTheme($this->inheritance->
getTheme($shopTemplate));
$definitions[] =
$definition;
} return $definitions;
} /**
* @throws Exception
*
* @return LessDefinition[]
*/