private function addPrivateServices()
{
if (!$definitions = $this->container->getDefinitions()) {
return '';
}
$code = '';
ksort($definitions);
foreach ($definitions as $id => $definition) {
if (!$definition->isPublic()) {
$code .= ' '.$this->export($id)." => true,\n";
}
}
if (empty($code)) {
return '';
}
$out = " \$this->privates = array(\n";
$out .= $code;
$out .= " );\n";
return $out;
}