[DependencyInjection] fixed YamlDumper did not make services private.