Adds multiple services
string
private function addServices() {
$publicServices = $privateServices = $synchronizers = '';
$definitions = $this->container
->getDefinitions();
ksort($definitions);
foreach ($definitions as $id => $definition) {
if ($definition
->isPublic()) {
$publicServices .= $this
->addService($id, $definition);
}
else {
$privateServices .= $this
->addService($id, $definition);
}
$synchronizers .= $this
->addServiceSynchronizer($id, $definition);
}
return $publicServices . $synchronizers . $privateServices;
}