622c51af57a2636fb4e8cd98bfb3b9c87a0db1f0
[yaffs-website] / vendor / symfony / dependency-injection / Tests / Fixtures / config / prototype.php
1 <?php
2
3 namespace Symfony\Component\DependencyInjection\Loader\Configurator;
4
5 use Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype;
6
7 return function (ContainerConfigurator $c) {
8     $di = $c->services()->defaults()
9         ->tag('baz');
10     $di->load(Prototype::class.'\\', '../Prototype')
11         ->autoconfigure()
12         ->exclude('../Prototype/{OtherDir,BadClasses}')
13         ->factory('f')
14         ->deprecate('%service_id%')
15         ->args(array(0))
16         ->args(array(1))
17         ->autoconfigure(false)
18         ->tag('foo')
19         ->parent('foo');
20     $di->set('foo')->lazy()->abstract();
21     $di->get(Prototype\Foo::class)->lazy(false);
22 };