3 namespace Symfony\Tests\InlineRequires;
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;
12 $container = new ContainerBuilder();
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);