20 lines
457 B
PHP
Executable File
20 lines
457 B
PHP
Executable File
<?php
|
|
|
|
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
|
|
|
|
use Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\Foo;
|
|
|
|
return function (ContainerConfigurator $c) {
|
|
$c->parameters()
|
|
('foo', 'Foo')
|
|
('bar', 'Bar')
|
|
;
|
|
$c->services()->defaults()->public()
|
|
(Foo::class)
|
|
->arg('$bar', ref('bar'))
|
|
->public()
|
|
('bar', Foo::class)
|
|
->call('setFoo')
|
|
;
|
|
};
|