return $factory();
} /**
* Gets the public 'closure1' shared service.
*
* @return \Closure
*/
protected static function getClosure1Service($container,
$lazyLoad = true
) { return $container->services
['closure1'
] =
(new class(fn () =>
new \Symfony\Component\DependencyInjection\Tests\Compiler\
Foo()) extends \Symfony\Component\DependencyInjection\Argument\LazyClosure
{ public function cloneFoo(?\stdClass
$bar = null
): \Symfony\Component\DependencyInjection\Tests\Compiler\Foo
{ return $this->service->
cloneFoo(...\
func_get_args());
} })->
cloneFoo(...
);
} /**
* Gets the public 'closure2' shared service.
*
* @return \Closure
*/
protected static function getClosure2Service($container,
$lazyLoad = true
) { return $container->services
['closure2'
] =
(new class(fn () =>
new \Symfony\Component\DependencyInjection\Tests\Compiler\
FooVoid()) extends \Symfony\Component\DependencyInjection\Argument\LazyClosure
{ public function __invoke(string
$name): void
{ $this->service->
__invoke(...\
func_get_args());
} })->
__invoke(...
);
}}