Adds services
string
private function addServices() {
if (!$this->container
->getDefinitions()) {
return '';
}
$code = "services:\n";
foreach ($this->container
->getDefinitions() as $id => $definition) {
$code .= $this
->addService($id, $definition);
}
foreach ($this->container
->getAliases() as $alias => $id) {
$code .= $this
->addServiceAlias($alias, $id);
}
return $code;
}