Gets all service ids.
array An array of all defined service ids
public function getServiceIds() {
$ids = array();
$r = new \ReflectionClass($this);
foreach ($r
->getMethods() as $method) {
if (preg_match('/^get(.+)Service$/', $method->name, $match)) {
$ids[] = self::underscore($match[1]);
}
}
return array_unique(array_merge($ids, array_keys($this->services)));
}