Skip to content

Commit

Permalink
[DependencyInjection] fixed YamlDumper did not make services private.
Browse files Browse the repository at this point in the history
  • Loading branch information
realityking committed Nov 2, 2013
1 parent 143af6d commit e8c2082
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Expand Up @@ -74,6 +74,10 @@ private function addService($id, $definition)
$code .= sprintf(" class: %s\n", $definition->getClass());
}

if (!$definition->isPublic()) {
$code .= " public: false\n";
}

$tagsCode = '';
foreach ($definition->getTags() as $name => $tags) {
foreach ($tags as $attributes) {
Expand Down
Expand Up @@ -48,6 +48,7 @@ services:

inlined:
class: Bar
public: false
properties: { pub: pub }
calls:
- [setBaz, ['@baz']]
Expand Down

0 comments on commit e8c2082

Please sign in to comment.