protected function loadServicesXml($servicesNode, $configPath)
{
foreach ($servicesNode->getElements() as $element) {
if ($element->getTagName() === 'service') {
$properties = $element->getAttributes();
if (($id = $properties->itemAt('id')) === null) {
throw new TConfigurationException('appconfig_serviceid_required');
}
if (($type = $properties->remove('class')) === null) {
throw new TConfigurationException('appconfig_servicetype_required', $id);
}
$element->setParent(null);
$this->_services[$id] = array($type, $properties->toArray(), $element);
$this->_empty = false;
} else {
throw new TConfigurationException('appconfig_services_invalid', $element->getTagName());
}
}
}