Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d41fc8b

Browse files
committed
[DependencyInjection] fixed tests (refs symfony#7017)
1 parent 880c1a0 commit d41fc8b

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
<?php
22

33
use Symfony\Component\DependencyInjection\ContainerBuilder;
4-
use Symfony\Component\DependencyInjection\Definition;
4+
use Symfony\Component\DependencyInjection\Reference;
55

66
$container = new ContainerBuilder();
77
$container->
88
register('foo', 'FooClass')->
99
addArgument(new Reference('bar'))
1010
;
11+
$container->
12+
register('bar', 'BarClass')
13+
;
1114
$container->compile();
1215

1316
return $container;

src/Symfony/Component/DependencyInjection/Tests/Fixtures/graphviz/services13.dot renamed to tests/Symfony/Tests/Component/DependencyInjection/Fixtures/graphviz/services13.dot

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@ digraph sc {
44
edge [fontsize="9" fontname="Arial" color="grey" arrowhead="open" arrowsize="0.5"];
55

66
node_foo [label="foo\nFooClass\n", shape=record, fillcolor="#eeeeee", style="filled"];
7+
node_bar [label="bar\nBarClass\n", shape=record, fillcolor="#eeeeee", style="filled"];
78
node_service_container [label="service_container\nSymfony\\Component\\DependencyInjection\\ContainerBuilder\n", shape=record, fillcolor="#9999ff", style="filled"];
9+
node_foo -> node_bar [label="" style="filled"];
810
}

0 commit comments

Comments
 (0)