Merge branch '2.0' into 2.1
* 2.0: [DependencyInjection] fixed tests (refs #7017)
This commit is contained in:
commit
0209eb6c47
@ -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"];
|
||||
}
|
||||
|
Reference in New Issue
Block a user