You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parameters defined using function notation in neon config are not available both when calling $container->getParameter('php_version') or $container->getParameters().
It was working in 3.0.x, stopped working in 3.1.0, then it started to work in 3.1.5 and in 3.1.8 it stopped working again.
parameters:
php_version: ::constant(PHP_VERSION)
(we call a different function, this is just to illustrate)
It is a bug in my opinion, at least a BC break but perhaps it is intentional?
I know a proper way is to inject the parameter inside a service but we are dealing with some legacy code.
The text was updated successfully, but these errors were encountered:
You're right, it only worked in 3.0.2 and was reverted in 3.0.3. It's not possible to implement this feature because it causes a huge amount of problems and has minimal benefit.
Version: 3.1.8
Bug Description
Parameters defined using function notation in neon config are not available both when calling
$container->getParameter('php_version')
or$container->getParameters()
.It was working in
3.0.x
, stopped working in3.1.0
, then it started to work in3.1.5
and in3.1.8
it stopped working again.(we call a different function, this is just to illustrate)
It is a bug in my opinion, at least a BC break but perhaps it is intentional?
I know a proper way is to inject the parameter inside a service but we are dealing with some legacy code.
The text was updated successfully, but these errors were encountered: