Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / symfony / dependency-injection / Tests / Fixtures / containers / container_inline_requires.php
diff --git a/vendor/symfony/dependency-injection/Tests/Fixtures/containers/container_inline_requires.php b/vendor/symfony/dependency-injection/Tests/Fixtures/containers/container_inline_requires.php
new file mode 100644 (file)
index 0000000..3bbfa31
--- /dev/null
@@ -0,0 +1,19 @@
+<?php
+
+namespace Symfony\Tests\InlineRequires;
+
+use Symfony\Component\DependencyInjection\ContainerBuilder;
+use Symfony\Component\DependencyInjection\Definition;
+use Symfony\Component\DependencyInjection\Dumper\PhpDumper;
+use Symfony\Component\DependencyInjection\Reference;
+use Symfony\Component\DependencyInjection\Tests\Fixtures\includes\HotPath;
+use Symfony\Component\DependencyInjection\Tests\Fixtures\ParentNotExists;
+
+$container = new ContainerBuilder();
+
+$container->register(HotPath\C1::class)->addTag('container.hot_path')->setPublic(true);
+$container->register(HotPath\C2::class)->addArgument(new Reference(HotPath\C3::class))->setPublic(true);
+$container->register(HotPath\C3::class);
+$container->register(ParentNotExists::class)->setPublic(true);
+
+return $container;