protected function prepareAutoIncludeTypoScript()
{
$autoIncludeTypoScript = array();
foreach (array_keys($this->packageManager->getActivePackages()) as $packageKey) {
if (isset($this->autoIncludeConfiguration[$packageKey]) && $this->autoIncludeConfiguration[$packageKey] === true) {
$autoIncludeTypoScriptFile = sprintf($this->autoIncludeTypoScriptPattern, $packageKey);
if (is_file($autoIncludeTypoScriptFile)) {
$autoIncludeTypoScript[] = $autoIncludeTypoScriptFile;
} else {
$autoIncludeTypoScript[] = sprintf($this->legacyAutoIncludeTypoScriptPattern, $packageKey);
}
}
}
return $autoIncludeTypoScript;
}