3bbfa31fa3c4604f0831771ed738818b2b75e862
[yaffs-website] / vendor / symfony / dependency-injection / Tests / Fixtures / containers / container_inline_requires.php
1 <?php
2
3 namespace Symfony\Tests\InlineRequires;
4
5 use Symfony\Component\DependencyInjection\ContainerBuilder;
6 use Symfony\Component\DependencyInjection\Definition;
7 use Symfony\Component\DependencyInjection\Dumper\PhpDumper;
8 use Symfony\Component\DependencyInjection\Reference;
9 use Symfony\Component\DependencyInjection\Tests\Fixtures\includes\HotPath;
10 use Symfony\Component\DependencyInjection\Tests\Fixtures\ParentNotExists;
11
12 $container = new ContainerBuilder();
13
14 $container->register(HotPath\C1::class)->addTag('container.hot_path')->setPublic(true);
15 $container->register(HotPath\C2::class)->addArgument(new Reference(HotPath\C3::class))->setPublic(true);
16 $container->register(HotPath\C3::class);
17 $container->register(ParentNotExists::class)->setPublic(true);
18
19 return $container;