/**
* 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);
} if (isset($this->loadedDynamicParameters
[$name])) { return $this->loadedDynamicParameters
[$name] ?
$this->dynamicParameters
[$name] :
$this->
getDynamicParameter($name);
}