protected static function getTestService($container) { return $container->services
['test'
] =
new \
stdClass(['only dot' => '.', 'concatenation as value' => '.\'\'.', 'concatenation from the start value' => '\'\'.', '.' => 'dot as a key', '.\'\'.' => 'concatenation as a key', '\'\'.' => 'concatenation from the start key', 'optimize concatenation' => 'string1-string2', 'optimize concatenation with empty string' => 'string1string2', 'optimize concatenation from the start' => 'start', 'optimize concatenation at the end' => 'end', 'new line' => 'string with '."\n".'new line'
]);
} 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);
} return $this->parameters
[$name];
} public function hasParameter(string
$name): bool
{ return isset($this->parameters
[$name]) ||
isset($this->loadedDynamicParameters
[$name]) || \
array_key_exists($name,
$this->parameters
);
}