Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / symfony / dependency-injection / Tests / Fixtures / config / instanceof.php
diff --git a/vendor/symfony/dependency-injection/Tests/Fixtures/config/instanceof.php b/vendor/symfony/dependency-injection/Tests/Fixtures/config/instanceof.php
new file mode 100644 (file)
index 0000000..062e8c0
--- /dev/null
@@ -0,0 +1,22 @@
+<?php
+
+namespace Symfony\Component\DependencyInjection\Loader\Configurator;
+
+use App\FooService;
+use Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype;
+
+return function (ContainerConfigurator $c) {
+    $s = $c->services();
+    $s->instanceof(Prototype\Foo::class)
+        ->property('p', 0)
+        ->call('setFoo', array(ref('foo')))
+        ->tag('tag', array('k' => 'v'))
+        ->share(false)
+        ->lazy()
+        ->configurator('c')
+        ->property('p', 1);
+
+    $s->load(Prototype::class.'\\', '../Prototype')->exclude('../Prototype/*/*');
+
+    $s->set('foo', FooService::class);
+};