return $container->services
['service_from_anonymous_factory'
] =
(new $
{($_ =
$container->
getEnv('FOO'
)) && false ?: "_"
}())->
getInstance();
} /**
* Gets the public 'service_with_method_call_and_factory' shared service.
*
* @return \Bar\FooClass
*/
protected static function getServiceWithMethodCallAndFactoryService($container) { $container->services
['service_with_method_call_and_factory'
] =
$instance =
new \Bar\
FooClass();
$instance->
setBar(\Bar\FooClass::
getInstance());
return $instance;
} public function getParameter(string
$name): array|bool|string|int|float|\UnitEnum|null
{ if (!
(isset($this->parameters
[$name]) ||
isset($this->loadedDynamicParameters
[$name]) || \
array_key_exists($name,
$this->parameters
))) { throw new ParameterNotFoundException($name);
}