$this->dumper = new YmlDumper();
}
- return $this->addParameters()."\n".$this->addServices();
+ return $this->container->resolveEnvPlaceholders($this->addParameters()."\n".$this->addServices());
}
/**
$code .= " synthetic: true\n";
}
- if ($definition->isSynchronized(false)) {
- $code .= " synchronized: true\n";
- }
-
if ($definition->isDeprecated()) {
$code .= sprintf(" deprecated: %s\n", $definition->getDeprecationMessage('%service_id%'));
}
$code .= sprintf(" autowiring_types:\n%s", $autowiringTypesCode);
}
- if ($definition->getFactoryClass(false)) {
- $code .= sprintf(" factory_class: %s\n", $this->dumper->dump($definition->getFactoryClass(false)));
- }
-
if ($definition->isLazy()) {
$code .= " lazy: true\n";
}
- if ($definition->getFactoryMethod(false)) {
- $code .= sprintf(" factory_method: %s\n", $this->dumper->dump($definition->getFactoryMethod(false)));
- }
-
- if ($definition->getFactoryService(false)) {
- $code .= sprintf(" factory_service: %s\n", $this->dumper->dump($definition->getFactoryService(false)));
- }
-
if ($definition->getArguments()) {
$code .= sprintf(" arguments: %s\n", $this->dumper->dump($this->dumpValue($definition->getArguments()), 0));
}
$code .= " shared: false\n";
}
- if (ContainerInterface::SCOPE_CONTAINER !== $scope = $definition->getScope(false)) {
- $code .= sprintf(" scope: %s\n", $this->dumper->dump($scope));
- }
-
if (null !== $decorated = $definition->getDecoratedService()) {
list($decorated, $renamedId, $priority) = $decorated;
$code .= sprintf(" decorates: %s\n", $decorated);