Permalink
Browse files

Merge branch '2.1' into 2.2

* 2.1:
  [DependencyInjection] fixed tests (refs #7017)
  • Loading branch information...
2 parents 3483972 + 51370fa commit b4b6d55e480fd965c2f2d30072069696b55a3bbd @fabpot fabpot committed Feb 11, 2013
Showing with 6 additions and 1 deletion.
  1. +4 −1 Tests/Fixtures/containers/container13.php
  2. +2 −0 Tests/Fixtures/graphviz/services13.dot
@@ -1,13 +1,16 @@
<?php
use Symfony\Component\DependencyInjection\ContainerBuilder;
-use Symfony\Component\DependencyInjection\Definition;
+use Symfony\Component\DependencyInjection\Reference;
$container = new ContainerBuilder();
$container->
register('foo', 'FooClass')->
addArgument(new Reference('bar'))
;
+$container->
+ register('bar', 'BarClass')
+;
$container->compile();
return $container;
@@ -4,5 +4,7 @@ digraph sc {
edge [fontsize="9" fontname="Arial" color="grey" arrowhead="open" arrowsize="0.5"];
node_foo [label="foo\nFooClass\n", shape=record, fillcolor="#eeeeee", style="filled"];
+ node_bar [label="bar\nBarClass\n", shape=record, fillcolor="#eeeeee", style="filled"];
node_service_container [label="service_container\nSymfony\\Component\\DependencyInjection\\ContainerBuilder\n", shape=record, fillcolor="#9999ff", style="filled"];
+ node_foo -> node_bar [label="" style="filled"];
}

0 comments on commit b4b6d55

Please sign in to comment.