Merge branch '2.1' into 2.2
* 2.1: [DependencyInjection] fixed tests (refs #7017)
This commit is contained in:
commit
95ba9449e2
@ -1,13 +1,16 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||||
use Symfony\Component\DependencyInjection\Definition;
|
use Symfony\Component\DependencyInjection\Reference;
|
||||||
|
|
||||||
$container = new ContainerBuilder();
|
$container = new ContainerBuilder();
|
||||||
$container->
|
$container->
|
||||||
register('foo', 'FooClass')->
|
register('foo', 'FooClass')->
|
||||||
addArgument(new Reference('bar'))
|
addArgument(new Reference('bar'))
|
||||||
;
|
;
|
||||||
|
$container->
|
||||||
|
register('bar', 'BarClass')
|
||||||
|
;
|
||||||
$container->compile();
|
$container->compile();
|
||||||
|
|
||||||
return $container;
|
return $container;
|
||||||
|
@ -4,5 +4,7 @@ digraph sc {
|
|||||||
edge [fontsize="9" fontname="Arial" color="grey" arrowhead="open" arrowsize="0.5"];
|
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_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_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