protected function parseDeclaration($typoScriptLine)
{
$result = preg_match(self::SPLIT_PATTERN_DECLARATION, $typoScriptLine, $matches);
if ($result !== 1 || !(isset($matches['declarationType']) && isset($matches['declaration']))) {
throw new Fusion\Exception('Invalid declaration "' . $typoScriptLine . '"', 1180544656);
}
switch ($matches['declarationType']) {
case 'namespace':
$this->parseNamespaceDeclaration($matches['declaration']);
break;
case 'include':
$this->parseInclude($matches['declaration']);
break;
}
}