return $container->services
['foo'
] =
new \
Foo();
} /**
* Gets the public 'service_closure' shared service.
*
* @return \Bar
*/
protected static function getServiceClosureService($container) { return $container->services
['service_closure'
] =
new \
Bar(#[\Closure(name: 'foo', class: 'Foo')] fn () => ($container->services['foo'] ??= new \Foo()));
} /**
* Gets the public 'service_closure_invalid' shared service.
*
* @return \Bar
*/
protected static function getServiceClosureInvalidService($container) { return $container->services
['service_closure_invalid'
] =
new \
Bar(fn () => NULL
);
}}