Added the Search API Synonym module to deal specifically with licence and license...
[yaffs-website] / vendor / symfony / dependency-injection / Tests / Fixtures / config / instanceof.php
1 <?php
2
3 namespace Symfony\Component\DependencyInjection\Loader\Configurator;
4
5 use App\FooService;
6 use Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype;
7
8 return function (ContainerConfigurator $c) {
9     $s = $c->services();
10     $s->instanceof(Prototype\Foo::class)
11         ->property('p', 0)
12         ->call('setFoo', array(ref('foo')))
13         ->tag('tag', array('k' => 'v'))
14         ->share(false)
15         ->lazy()
16         ->configurator('c')
17         ->property('p', 1);
18
19     $s->load(Prototype::class.'\\', '../Prototype')->exclude('../Prototype/*/*');
20
21     $s->set('foo', FooService::class);
22 };