/**
* @param array $inheritance
*
* @throws Exception
*
* @return JavascriptDefinition[]
*/
private function collectInheritanceJavascript($inheritance) { $definitions =
[];
foreach (array_reverse($inheritance) as $template) { $definition =
new JavascriptDefinition();
$definition->
setTheme($this->inheritance->
getTheme($template));
$definition->
setFiles($this->inheritance->
getTemplateJavascriptFiles($template));
$definitions[] =
$definition;
} return $definitions;
} /**
* @throws Enlight_Event_Exception
* @throws Exception
*
* @return JavascriptDefinition[]
*/