protected function parseComponent()
{
if ($this->container->platform->isCli()) {
$order = array('cli', 'backend');
} elseif ($this->container->platform->isBackend()) {
$order = array('backend');
} else {
$order = array('frontend');
}
$order[] = 'common';
$order = array_reverse($order);
self::$configurations[$this->container->componentName] = array();
foreach (array(false, true) as $userConfig) {
foreach ($order as $area) {
$config = $this->parseComponentArea($area, $userConfig);
self::$configurations[$this->container->componentName] = array_replace_recursive(self::$configurations[$this->container->componentName], $config);
}
}
}