3 namespace Symfony\Component\DependencyInjection\Loader\Configurator;
5 use Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype;
7 return function (ContainerConfigurator $c) {
8 $di = $c->services()->defaults()
10 $di->load(Prototype::class.'\\', '../Prototype')
12 ->exclude('../Prototype/{OtherDir,BadClasses}')
14 ->deprecate('%service_id%')
17 ->autoconfigure(false)
20 $di->set('foo')->lazy()->abstract();
21 $di->get(Prototype\Foo::class)->lazy(false);